At My Fingertips
Rapid Playground
Implement the heart function to recreate the following heart graphic.
If you find it difficult to decompose the graphic, observe it when rotated by 45 degrees clockwise:
As a small first step, define a function to create a semicircle:
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.
This activity has been created by LuCE Research Lab and is licensed under CC BY-SA 4.0.
Heart
PyTamaro is a project created by the Lugano Computing Education Research Lab at the Software Institute of USI
Privacy Policy • Platform Version 0d7866a (Fri, 20 Dec 2024 07:46:38 GMT)