At My Fingertips
Let's compose a cute little penguin in the so-called "flat design" style.
One way to decompose the penguin is to see it as:
If you already have a beak
function in your toolbox
(e.g., because you built the Flat Design Bird), simply import it with from toolbox import beak
.
You learned how to decompose a graphic, and to create a nice function for each component. Your functions can be developed, tested, and used on their own: for example, you can call your beak function to create a beak for a bird, or just a beak on its own.
If you want to reuse your functions in other activities, save them in your toolbox (click the tools button at the bottom of the corresponding code cell).
This activity has been created by LuCE Research Lab and is licensed under CC BY-SA 4.0.
Flat Design Penguin
PyTamaro is a project created by the Lugano Computing Education Research Lab at the Software Institute of USI
Privacy Policy ⢠Platform Version c3a8286 (Mon, 14 Oct 2024 13:30:28 GMT)