Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from turtle import *
- def my_line(d, z):
- step = 200/z
- dd = 360/6
- if d!=1:
- my_line(d-1, z*3)
- left(dd)
- my_line(d-1, z*3)
- right(dd*2)
- my_line(d-1, z*3)
- left(dd)
- my_line(d-1, z*3)
- else:
- forward(step)
- left(dd)
- forward(step)
- right(dd*2)
- forward(step)
- left(dd)
- forward(step)
- color('red', 'yellow')
- speed(200)
- pu()
- setposition(-300,200)
- pd()
- for i in range(3):
- my_line(6, 1)
- right(360/3)
- done()
Advertisement
Add Comment
Please, Sign In to add comment