At My Fingertips

Rapid Playground

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 PyTamaro iconellipse 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 320e1c5 (Thu, 16 May 2024 14:11:39 GMT)