Source Code:
from turtle import*
import colorsys
speed(0)
fd(100)
he = 0.7
bgcolor("black")
for i in range(200):
col = colorsys.hsv_to_rgb(he,1,1)
he+=0.004
fillcolor(col)
def triangle(a,b,c):
lt(120)
fd(a-i)
lt(120)
fd(b-i)
lt(90)
fd(c-i)
begin_fill()
triangle(200,200,200)
left(90)
left(20)
left(90)
triangle(200,200,200)
right(120)
end_fill()
hideturtle()
done()

Comments
Post a Comment