Monday, March 16, 2020
Phase 3
#In this phase we draw 12 knobs on a circular virus:
import turtle
t=turtle.Turtle()
t.color('red', 'yellow')
t.pensize(6)
t.speed(10)
def blita():
t.begin_fill()
t.rt(90)
t.fd(50)
t.lt(90)
t.fd(50)
t.rt(90)
t.fd(50)
t.rt(90)
t.fd(150)
t.rt(90)
t.fd(50)
t.rt(90)
t.fd(50)
t.lt(90)
t.fd(50)
t.rt(90)
t.fd(50)
t.end_fill()
t.pu()
t.sety(-397)
t.pd()
for i in range(12):
t.circle(400,30)
blita()
t.begin_fill()
t.circle(400)
t.end_fill()
turtle.done()
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment