Python Turtle Graphic Design #4
Source code:
import turtle as t
import colorsys as cs
t.setup(640,640)
t.bgcolor('black')
t.tracer(100)
t.pensize(1)
t.hideturtle()
cols = ['#f00','#0f0','#f70','#00f']
for i in range(360):
t.pencolor(cols[i % 4])
t.fillcolor(cols[i % 4])
t.begin_fill()
t.circle(i/3,180)
t.lt(90)
t.fd(i/3)
t.rt(179)
t.end_fill()
t.done()
No comments:
Post a Comment