At My Fingertips

Rapid Playground

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 PyTamaro iconellipse 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 PyTamaro iconbeside, PyTamaro iconabove and PyTamaro iconoverlay.

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 320e1c5 (Thu, 16 May 2024 14:11:39 GMT)