At My Fingertips

Rapid Playground

Documentation

Fiore a quattro petali

Implementa la funzione fiore_quattro_petali per ricreare la grafica seguente.

four petal flower

Dato che la grafica è principalmente composta da cerchi, cominciamo creando una funzione cerchio che prende un diametro e un colore, usando la funzione PyTamaro iconellisse, dato che quest'ultima richiede tre parametri ma due sono sufficienti per costruire un cerchio.

Loading...

Ora puoi implementare più facilmente la grafica desiderata. Usa il COLORE_PETALI e il COLORE_PISTILLO specificati per ottenere un risultato uguale al nostro.

Suggerimento: non è necessario utilizzare fissa e componi, ma solo PyTamaro iconaccanto, PyTamaro iconsopra e PyTamaro iconsovrapponi.

Loading...

This activity has been created by Lardelli and is licensed under CC BY-SA 4.0.

It is derived from this activity.

Fiore a quattro petali

Logo of PyTamaro

PyTamaro is a project created by the Lugano Computing Education Research Lab at the Software Institute of USI

Privacy PolicyPlatform Version 320e1c5 (Thu, 16 May 2024 14:11:39 GMT)