Star Design Program using Python Turtle
Source Code :
from turtle import *wn = Screen()wn.bgcolor('black')wn.title("Animation")wn.setup(width=1200, ht=750)t = Turtle()t.speed(0)t.color('lightgreen') for i in range (140):t.pensize(i/50)t.fd(i)t.rt(90)t.fd(i)t.rt(80)t.fd l(i + 100)t.circle(30,67)wn.mainloop()
0 Comments
Post a Comment