Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import turtle
- t = turtle.Pen()
- t.color("red")
- t.pensize(10)
- t.forward(100)
- t.color("orange")
- t.pensize(8)
- t.forward(100)
- t.color("yellow")
- t.pensize(6)
- t.forward(100)
- t.color("green")
- t.pensize(4)
- t.forward(100)
- t.color("blue")
- t.pensize(2)
- t.forward(100)
- import turtle
- t = turtle.Pen()
- t.begin_fill()
- t.color("red")
- t.pensize(3)
- t.forward(100)
- t.left(90)
- t.forward(100)
- t.left(90)
- t.forward(100)
- t.left(90)
- t.forward(100)
- t.left(90)
- t.fillcolor("green")
- t.end_fill()
- import turtle
- t = turtle.Pen()
- t.color("yellow")
- t.begin_fill()
- for x in range(72):
- t.forward(5)
- t.left(5)
- t.fillcolor("yellow")
- t.end_fill()
- t.color("dark blue")
- t.forward(60)
- t.left(90)
- t.forward(40)
- t.begin_fill()
- t.right(90)
- t.forward(200)
- t.right(90)
- t.forward(200)
- t.right(90)
- t.forward(460)
- t.right(90)
- t.forward(200)
- t.right(90)
- t.forward(400)
- t.fillcolor("dark blue")
- t.end_fill()
- turtle.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement