At My Fingertips

Rapid Playground

Documentation

Sliced Watermelon

Compose a graphic of a sliced watermelon.

Watermelon Slice

Watermelon Seed

In our graphic, the small seeds of the watermelon are distributed in two rings. They are dark (the color is already defined in SEED_COLOR) and have an elliptical shape (about half as wide as long).

Implement the watermelon_seed function. Use PyTamaro iconellipse.

Loading...

Sliced Watermelon without Seeds

Compose a sliced watermelon without any seeds. Use the given colors for the greenish skin (SKIN_COLOR), the whiteish pith (PITH_COLOR), and the reddish flesh (FLESH_COLOR). The watermelon should have the given overall diameter, the pith should be 95% and the flesh should be 85% of that diameter.

Loading...

Ring of Seeds

Create a function ring that produces a ring of count seeds, evenly spread across the 360 degrees of a circle. The inside diameter of the ring should correspond to diameter (the seeds should form a ring just outside the diameter). Repetitively call watermelon_seed to produce the ring of seeds.

Hint: If you need help, check out the PyTamaro iconSliced Pitaya activity.

Loading...

Sliced Watermelon with Seeds

Create two rings of seeds:

  • 40% of diameter - 20 seeds - rotated by 1/40 of 360 degrees
  • 50% of diameter - 20 seeds

Place them on top of a watermelon without seeds.

Loading...

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

Sliced Watermelon

Logo of PyTamaro

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

Privacy PolicyPlatform Version 95a8490 (Sun, 05 May 2024 10:58:14 GMT)