#motivational project, cool cyclone effect using turtle graphics.
t = turtle.Turtle()
t.penup()
t.go_to(0,0)
def draw_square(size, color):
t.pendown()
t.color(color)
for x in range(4):
t.forward(size)
t.right(90)
t.penup()
def draw_circle(size, color):
t.pendown()
t.color(color)
for x in range(36):
t.forward(size)
t.right(10)
t.penup()
while True:
t.speed(100)
draw_square(100, "red")
draw_circle(20, "blue")
t.right(10)
-
Run Code
-
-
Stop Running Code
-
Show Chart
-
Show Console
-
Codesters How To (opens in a new tab)