Skip to content

Commit cf07aa9

Browse files
authored
The File!
This is it. no more files !!..
0 parents  commit cf07aa9

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

Star.py

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import turtle
2+
a = turtle.Turtle()
3+
a.getscreen().bgcolor("black")
4+
5+
a.penup()
6+
a.goto(-200, 100)
7+
a.pendown()
8+
a.color("yellow")
9+
10+
a.speed(25)
11+
12+
13+
def star(turtle, size):
14+
if size <= 10:
15+
return
16+
else:
17+
turtle.begin_fill()
18+
for i in range(5):
19+
turtle.forward(size)
20+
star(turtle, size/3)
21+
turtle.left(216)
22+
turtle.end_fill()
23+
24+
25+
star(a, 360)
26+
turtle.done()

0 commit comments

Comments
 (0)