At My Fingertips
Rapid Playground
Implement the four_petal_flower
function to recreate the following graphic.
Since the graphic is mainly composed by circles, let's first create a circle
function that only takes a diameter
and a color
, using the ellipse function, since the latter takes three parameters but two are enough to construct a circle.
Now you can implement the wanted graphic more easily. Use the specified PETAL_COLOR
and PISTIL_COLOR
colors to achieve the same result as us.
Hint: you don't need to use pin and compose, but only beside, above and overlay.
This activity has been created by LuCE Research Lab and is licensed under CC BY-SA 4.0.
Four Petal Flower
PyTamaro is a project created by the Lugano Computing Education Research Lab at the Software Institute of USI
Privacy Policy • Platform Version 3094ca3 (Tue, 03 Dec 2024 14:08:36 GMT)