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 c08406b (Wed, 20 Nov 2024 12:30:00 GMT)