Implement draw_spirograph #24

Closed
opened 2026-10-07 18:02:17 +02:00 by Tirsvad · 0 comments
Owner

Implement draw_spirograph(pen, size_of_gap, radius, rng): draw int(360 / size_of_gap) circles, each in a random_color RGB value, and after each circle set the heading to the current heading plus the gap. A zero or negative gap raises ValueError; the int conversion avoids the float error that range raises.

Phase: MIL-004

Implement `draw_spirograph(pen, size_of_gap, radius, rng)`: draw `int(360 / size_of_gap)` circles, each in a `random_color` RGB value, and after each circle set the heading to the current heading plus the gap. A zero or negative gap raises `ValueError`; the `int` conversion avoids the float error that `range` raises. Phase: MIL-004
Tirsvad added this to the Milestone 004: Random Walk and Spirograph milestone 2026-10-07 18:02:17 +02:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Tirsvad-Udemy-100-days-of-code/018-turtle#24