Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import turtle, random
- t = turtle.Turtle()
- def draw_circle(t_name,r,col):
- t_name.color(col)
- t_name.dot(r*2)
- c = ["blue","white","red","yellow","lightblue"]
- for i in range(100):
- x = random.randint(-250,250)
- y = random.randint(-250,250)
- s = random.randint(50,150)
- t.penup()
- t.goto(x,y)
- draw_circle(t,s,random.choice(c))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement