At My Fingertips

Documentation

Four Petal Flower

Implement the four_petal_flower function to recreate the following graphic.

four petal flower

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.

Loading...

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.

Loading...

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

Four Petal Flower

Logo of PyTamaro

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

Privacy PolicyPlatform Version 1cd5229 (Tue, 05 Nov 2024 16:55:57 GMT)