Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c70ac01

Browse files
drawing Eye Pattern
1 parent d89cad2 commit c70ac01

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

‎python_turtol_graphics/eye_pettern.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import turtle
2+
3+
def draw_patern(t):
4+
t.pendown()
5+
t.forward(100)
6+
t.right(30)
7+
t.forward(60)
8+
t.left(30)
9+
t.forward(30)
10+
t.penup()
11+
t.home()
12+
13+
def draw_art():
14+
window = turtle.Screen()
15+
t = turtle.Turtle()
16+
t.speed(30)
17+
move = 1
18+
for i in range(360):
19+
draw_patern(t)
20+
t.right(move)
21+
move +=1
22+
window.exitonclick()
23+
24+
draw_art()

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /