At My Fingertips

Rapid Playground

Documentation

Heart

Implement the heart function to recreate the following heart graphic.

heart

If you find it difficult to decompose the graphic, observe it when rotated by 45 degrees clockwise:

heart rotated

As a small first step, define a function to create a semicircle:

Loading...

You can now use it as one of the building blocks needed to create the entire heart. Use the specified LOVE_RED as a color to get a nice touch.

Some names are already pre-imported, but feel free to change them as needed for your solution.

Loading...

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

Heart

Logo of PyTamaro

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

Privacy PolicyPlatform Version d900fe4 (Fri, 26 Apr 2024 16:23:18 GMT)