41 lines
717 B
Python
41 lines
717 B
Python
import turtle
|
|
import random
|
|
t=turtle.Turtle()
|
|
t.speed(0)
|
|
t.pencolor('yellow')
|
|
t.fillcolor(1,165/255,0)
|
|
t.begin_fill()
|
|
t=turtle.Turtle()
|
|
t.speed(0)
|
|
n=0
|
|
m=0
|
|
l=0
|
|
for i in range(500):
|
|
t.forward(i)
|
|
t.left(91)
|
|
r = random.random()
|
|
g = random.random()
|
|
b = random.random()
|
|
t.pencolor('blue')
|
|
t.goto(0,0)
|
|
t.pencolor('yellow')
|
|
t.fillcolor(1,165/255,0)
|
|
t.begin_fill()
|
|
for a in range(10):
|
|
t.left(35)
|
|
for a in range(5):
|
|
t.forward(100)
|
|
t.left(72)
|
|
t.forward(100)
|
|
t.right(144)
|
|
t.end_fill()
|
|
t.pencolor('red')
|
|
t.speed(0)
|
|
t.fillcolor('yellow')
|
|
t.begin_fill()
|
|
for j in range(12):
|
|
for i in range(36):
|
|
t.forward(300)
|
|
t.left(170)
|
|
t.left(30)
|
|
t.end_fill() |