Drawing The Olympic Rings With Python Turtle

Continuing lesson on the circle command.

--

screenshot my computer

In a previous lesson, we introduced the circle command in Python Turtle now we are going to explore a bit further.

The circle command goes from the current position of the turtle and draws a circle with a given radius moving counterclockwise. if the radius is entered as a negative number it goes clockwise.

Here’s a drawing of a pair of semicircles to illustrate.

screen capture my computer
import turtle as T
T.width (10)
T.color ("blue")
T. circle (50,180)
T.color ("red")
T. circle (-50,180)

When drawing a circle we frequently want to draw the circle from the center.

Here is one way to accomplish this. We will look at another way in another lesson.

The turtle is located at position 0,0. (this position is the center of the screen and is called home() ). If we want to draw a circle with a radius of 100 pixels centered at 0,0 we would have to move the turtle to an outside edge and since we don’t want to show a line we would have to pick up the pen; then turn the turtle to the left 90 degrees; put the pen back down…

--

--

Jim McAulay🍁 I'm nobody. Are you a nobody too?
ILLUMINATION

I love puns. https://medium.com/@Jim_McAulay/membership Use this link if you love them too. I’m not joking, but Stephen King has a son who is Joe King.