Commit daef41f2 by BellCodeEditor

auto save

parent 07057cce
Showing with 28 additions and 0 deletions
import turtle as t
import turtle as t
import random as r
t.setup(10000,10000)
t.screensize(10000,10000,"green")
def drew_circle(radius,color,y_position):
t.penup()
t.pensize(30)
t.fillcolor(color)
t.goto(0,y_position)
t.pendown()
t.begin_fill()
t.circle(radius)
t.end_fill()
def drew_bullet():
t.penup()
t.goto(r.randint(-200,200),r.randint(-200,200))
t.pendown()
t.dot(25)
drew_circle(200,"red",-200)
drew_circle(150,"blue",-150)
drew_circle(100,"yellow",-100)
drew_circle(50,"skyblue",-50)
for _ in range(5):
drew_bullet()
t.hideturtle()
t.done()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment