Star Design
import turtle
turObj = turtle.Turtle()
turObj.getscreen().bgcolor("#555555")
turObj.speed(10)
def star(turtle, size):
if size <=10:
return
else:
for i in range(30):
turObj.color("#FEACFF")
turObj.forward(i * 15)
turObj.right(144)
star(turObj,100)
turtle.done()
Output:
Comments
Post a Comment