Skip to content
Snippets Groups Projects
Commit 64c2f16c authored by 김진석's avatar 김진석
Browse files

Update 201520544_김진석_Tultle_proj.py

parent e397c7cc
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@ import turtle as t
t.setup(10,20,0,0)
for i in range (0,9):
t.penup()
t.goto(-75*i,-25*i)
t.goto(-75*i,-25*i) #n이 증가할 때 마다 터틀을 이동시킴
t.pendown()
t.begin_fill()
if (i % 2 == 0):
......@@ -15,16 +15,16 @@ for i in range (0,9):
#암모나이트 모양 만들기
t.goto(0,0)
t.goto(0,0) #터틀을 원점으로 되돌림
t.pensize(1)
t.shape("turtle")
t.bgcolor("gray")
t.color("white")
t.speed(0)
t.bgcolor("gray") #배경색을 회색으로
t.color("white") #흰색으로 원을 그림
t.speed(0) #스피드를 가장 빠르게
for k in range (1,200):
t.circle(k)
t.left(360/k)
t.circle(k) #현재위치에서 반지름이 k인 원을 그림
t.left(360/k) #거북이가 (360/k) 만큼 왼쪽으로 회전
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment