At My Fingertips

Flat Design Penguin

Let's compose a cute little penguin in the so-called "flat design" style.

Decomposition

One way to decompose the penguin is to see it as:

  • an almost white front part of the body
  • a black back part of the body
  • an eye (in the top right area of the body)
  • a two-colored beak (attached to the top right of the body)
  • a foot at the bottom of the body, sticking out behind the body

Implementation

Loading...

Eye

Loading...

Beak

If you already have a beak function in your toolbox (e.g., because you built the PyTamaro iconFlat Design Bird), simply import it with from toolbox import beak.

Loading...

Foot

Loading...

Body

Loading...

Penguin

Loading...

What You Learned

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

Logo of PyTamaro

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)