Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from turtle import*
- def treug(a):
- fd(a)
- left(120)
- fd(a)
- left(120)
- fd(a)
- right(150)
- def kvad(b):
- fd(b)
- right(90)
- fd(b)
- right(90)
- fd(b)
- right(90)
- fd(b)
- right(90)
- def pr(x, y):
- fd(y)
- right(90)
- fd(x)
- right(90)
- fd(y)
- right(90)
- fd(x)
- right(90)
- speed(0)
- fillcolor("purple")
- begin_fill()
- treug(100)
- end_fill()
- up()
- goto(0, -100)
- down()
- begin_fill()
- kvad(100)
- end_fill()
- up()
- goto(10, -50)
- down()
- fillcolor("aqua")
- begin_fill()
- kvad(20)
- end_fill()
- up()
- goto(50, -100)
- down()
- fillcolor("brown")
- begin_fill()
- pr(30, 80)
- end_fill()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement