At My Fingertips

Documentation

Eyes

Implement the eyes function to recreate the following graphic.

eyes

The circle

Since the graphic is mainly composed by circles, to avoid putting the same width and height in the ellipse function each time, let's create a circle function that only takes a diameter and a color.

Loading...

An eye

Since we are going to need two eyes, let's implement an eye function to avoid having to write the same code twice. The pupil's diameter should be half of the eye's diameter.

Loading...

Two Eyes

You can now implement the eyes function that returns two eyes beside eachother.

Loading...

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

Eyes

Logo of PyTamaro

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

Privacy PolicyPlatform Version c08406b (Wed, 20 Nov 2024 12:30:00 GMT)