At My Fingertips

Rapid Playground

Documentation

Egg

Let's compose an egg using Moss's egg construction:

Moss's egg

Drawing by Kmhkmh, CC BY 4.0, via Wikimedia Commons

Egg

Let's construct an egg (colored in the given SHELL_COLOR). Use PyTamaro iconcircular_sector and PyTamaro icontriangle.

Loading...

Sliced Egg with Yolk

Implement the sliced_egg function to compose a sliced egg showing the egg white and egg yolk.

Either use and modify the code of the above egg function, so that it constructs two half-yolks (one for the top part, and one for the bottom part of the egg), or call the egg function to build the egg white, and then superimpose the circular yellowish egg yolk, padded by an appropriate amoung (e.g., placing them above a PyTamaro iconrectangle with the appropriate height).

Loading...

Easter Eggs

Now that you have a function to compose an egg, you may want to compose a nest full of colorful Easter eggs.


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

Egg

Logo of PyTamaro

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

Privacy PolicyPlatform Version 53000ec (Tue, 07 May 2024 13:57:12 GMT)