Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from turtle import *
- tom = Turtle()
- tom.speed(0)
- tom.color("red")
- tom.pensize(3)
- ### Polygons
- # sides = 11
- # for john in range(sides):
- # tom.forward(40)
- # tom.left(180-(180/sides))
- ### Circle in Looop
- # radius = 25
- # for x in range(25):
- # tom.circle(radius)
- # radius = radius + 5
- ###Spiral Star
- # sides = 5
- # line = 10
- # for john in range(sides*5):
- # tom.forward(line)
- # tom.left(180-(180/sides))
- # line = line + 10
- ### Flower
- # radius = 35
- # for y in range(3):
- # for x in range(8):
- # tom.circle(radius)
- # tom.penup()
- # tom.left(45)
- # tom.pendown()
- # radius = radius + 35
- ### colorful flower
- # radius = 35
- # for x in range(8):
- # tom.circle(radius)
- # tom.penup()
- # tom.left(45)
- # tom.pendown()
- # radius = radius + 35
- # tom.color("blue")
- # for x in range(8):
- # tom.circle(radius)
- # tom.penup()
- # tom.left(45)
- # tom.pendown()
- # radius = radius + 35
- # tom.color("green")
- # for x in range(8):
- # tom.circle(radius)
- # tom.penup()
- # tom.left(45)
- # tom.pendown()
- # radius = radius + 35
- done()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement