개발&성장 일기 🌱🌼

[21.06.21] 2017년의 코드

dalin❤️ 2021. 10. 8. 13:13

2017년 2학기! 대학교에서 교양 필수 수업으로 파이썬을 배웠다.
초반에 터틀 그래픽스로 그림을 그렸는데, 그때 과제이다 ..ㅎㅎ
와우.. 정말 한땀 한땀 그렸네 ㅎㅎ

눈오는날의무민

from turtle import *
shape ("turtle")

begin_fill()
fillcolor("white")

lt(90)
fd(6)

fd(20)
rt(90)
fd(4)
rt(90)
lt(90)
fd(3)
rt(90)
fd(20) # 왼쪽 귀 안 쪽부분
rt(270)
fd(10)
lt(90)
fd(3)
rt(10)
fd(3)
rt(10)
fd(4)
rt(10)
fd(5)
rt(10)
fd(3)
rt(50)
rt(90)
lt(20)
fd(3)
rt(10)
fd(4)
fd(3)
fd(10)
lt(20)
fd(10)
lt(10)
rt(9)
fd(1)
rt(1)
fd(1)
rt(1)
fd(2)
rt(1)
fd(2)
rt(2)
fd(2)
lt(10)
fd(2)
lt(10)
fd(2)
lt(20)
fd(2)
lt(20)
fd(7)
rt(10)
fd(2)
rt(10)
fd(2)
rt(20)
fd(1)
rt(20)
lt(15)
fd(1)
rt(10)
fd(2)
rt(20)
fd(3)
rt(5)
fd(5)
rt(20)
fd(1)
rt(10)
fd(2)
rt(20)
fd(2)
rt(20)
fd(2)
rt(20)
fd(5)
fd(5)
fd(5)
lt(10)
fd(4)
lt(10)
fd(3)
rt(10)
rt(10)
rt(10)
lt(20)
fd(3)
rt(3)
rt(7)
fd(2)
rt(20)
fd(2)
fd(2)
rt(10)
fd(2)
rt(10)
fd(2)
fd(3)
fd(3)
fd(3)
rt(10)
fd(3)
rt(10)
fd(3)
rt(10)
fd(2)

end_fill()
penup()
begin_fill()
fillcolor("white")
rt(20)
fd(20)
fd(2)
fd(2)
fd(2)
lt(80) # 얼굴모양

pendown()
fd(2)
lt(20)
fd(2)
lt(30)
fd(2)
lt(30)
fd(10)
lt(5)  #등부분시작하려는 중



fd(60)
lt(10)
fd(8)
lt(10)
rt(7)
fd(5)
lt(90)
lt(30)
lt(20)
lt(10)
fd(19)
rt(180)
fd(19)
fd(3)
fd(3)
rt(90)
rt(180)
   #이제 손을 그리려고 함.

fd(2)
lt(90)
fd(4)
back(4)
rt(90)

fd(2)
lt(90)
fd(5)
back(5)
rt(90)

fd(2)
lt(90)
fd(5)
back(5)
rt(90)

fd(2)
lt(90)
fd(4)
back(4)
rt(90) # 아마 손가락 네 개

lt(90)
fd(4)
rt(80)
fd(8)
lt(90)
fd(3)
lt(50)
fd(2)
lt(30)
fd(3)  # 엄지 손가락

rt(90)
fd(10)  #팔

penup()
rt(180)
fd(25)

pendown()

lt(30)
back(8)
fd (10)  # 몸통을 이어서 그리는 중

rt(90)
fd(5)
lt(10)
fd(5)
lt(10)
fd(5)
rt(5)
fd(5)
rt(10)
fd(10)  # 꼬리

rt(50)
fd(10)
lt(90)
fd(4)
lt(90)
fd(4)
back(4)
rt(90)


fd(3)
lt(90)
fd(4)
back(4)
rt(90)

fd(3)
lt(90)
fd(5)
back(5)
rt(90)

fd(3)
lt(90)
fd(7)
back(7)
rt(90)

fd(3)
lt(90)
fd(8)  # 꼬리털

lt(90)
fd(10)
rt(90)
fd(5)
lt(10)
fd(3)
lt(10)
fd(3)
lt(30)
fd(15)
lt(10)
fd(20)
# 꼬리 완성

rt(100)
fd(18)
lt(90)
fd(20)
lt(160)
fd(8)
rt(70)
fd(10)  # 왼쪽 다리

rt(100)
fd(20)

rt(100)
fd(18)
lt(90)
fd(20)
lt(160)
fd(8)
rt(70)
fd(20)  # right leg


rt(30)
fd(10)
lt(10)
fd(5)
lt(10)
fd(10)
lt(10)
fd(10)
lt(10)
fd(10) 
lt(25)
fd(40)
end_fill() # 배

penup()
fd(40)
lt(70)
pendown()



bgcolor("black")

rt(90)
penup()
fd(40)
pendown()
color("white")
begin_fill()
fillcolor("white")
circle(6)
end_fill()  #눈송이!!

rt(90)
penup()
fd(40)
pendown()
color("white")
begin_fill()
fillcolor("white")
circle(8)
end_fill()  #눈송이!!


rt(90)
penup()
fd(40)
pendown()
color("white")
begin_fill()
fillcolor("white")
circle(5)
end_fill()  #눈송이!!

lt(90)
penup()
fd(40)
pendown()
color("white")
begin_fill()
fillcolor("white")
circle(8)
end_fill()  #눈송이!!



rt(90)
penup()
fd(40)
pendown()
color("white")
begin_fill()
fillcolor("white")
circle(7)
end_fill()  #눈송이!!

rt(90)
penup()
fd(40)
pendown()
color("white")
begin_fill()
fillcolor("white")
circle(6)
end_fill()  #눈송이!!


rt(180)
penup()
fd(100)
pendown()
color("white")
begin_fill()
fillcolor("white")
circle(8)
end_fill()

rt(70)
penup()
fd(100)
pendown()
color("white")
begin_fill()
fillcolor("white")
circle(5)
end_fill()



rt(70)
penup()
fd(100)
pendown()
color("white")
begin_fill()
fillcolor("white")
circle(6)
end_fill()

rt(60)
penup()
fd(100)
pendown()
color("white")
begin_fill()
fillcolor("white")
circle(3)
end_fill()


rt(90)
penup()
fd(150)
pendown()
color("white")
begin_fill()
fillcolor("white")
circle(10)
end_fill()


rt(90)
penup()
fd(50)
pendown()
color("white")
begin_fill()
fillcolor("white")
circle(8)
end_fill()


rt(90)
penup()
fd(50)
pendown()
color("white")
begin_fill()
fillcolor("white")
circle(7)
end_fill()

rt(90)
penup()
fd(50)
pendown()
color("white")
begin_fill()
fillcolor("white")
circle(5)
end_fill()

rt(120)
penup()
fd(10)
pendown()
color("white")
begin_fill()
fillcolor("white")
circle(6)
end_fill()



penup()
fd(200)
pendown()
color("white")
begin_fill()
fillcolor("white")
circle(7)
end_fill()

rt(90)
penup()
fd(50)
pendown()
color("white")
begin_fill()
fillcolor("white")
circle(10)
end_fill()

rt(90)
penup()
fd(50)
pendown()
color("white")
begin_fill()
fillcolor("white")
circle(9)
end_fill()

rt(90)
penup()
fd(50)
pendown()
color("white")
begin_fill()
fillcolor("white")
circle(4)
end_fill()

rt(100)
penup()
fd(100)
pendown()
color("white")
begin_fill()
fillcolor("white")
circle(8)
end_fill()


lt(90)
penup()
fd(100)
pendown()
color("white")
begin_fill()
fillcolor("white")
circle(5)
end_fill()


lt(90)
penup()
fd(50)
pendown()
color("white")
begin_fill()
fillcolor("white")
circle(9)
end_fill()

lt(90)
penup()
fd(50)
pendown()
color("white")
begin_fill()
fillcolor("white")
circle(7)
end_fill()

rt(90)
penup()
fd(100)
pendown()
color("white")
begin_fill()
fillcolor("white")
circle(4)
end_fill()


penup()
fd(200)
pendown()
color("white")
begin_fill()
fillcolor("white")
circle(8)
end_fill()

lt(90)
penup()
fd(200)
pendown()
color("white")
begin_fill()
fillcolor("white")
circle(4)
end_fill()

lt(100)
penup()
fd(200)
pendown()
color("white")
begin_fill()
fillcolor("white")
circle(8)
end_fill()

lt(100)
penup()
fd(300)
pendown()
color("white")
begin_fill()
fillcolor("white")
circle(7)
end_fill()

lt(90)
penup()
fd(50)
pendown()
color("white")
begin_fill()
fillcolor("white")
circle(5)
end_fill()

lt(90)
penup()
fd(50)
pendown()
color("white")
begin_fill()
fillcolor("white")
circle(5)
end_fill()

lt(90)
penup()
fd(50)
pendown()
color("white")
begin_fill()
fillcolor("white")
circle(9)
end_fill()


lt(90)
penup()
fd(200)
pendown()
color("white")
begin_fill()
fillcolor("white")
circle(8)
end_fill()

lt(90)
penup()
fd(50)
pendown()
color("white")
begin_fill()
fillcolor("white")
circle(4)
end_fill()

rt(100)
penup()
fd(50)
pendown()
color("white")
begin_fill()
fillcolor("white")
circle(5)
end_fill()

rt(70)
penup()
fd(80)
pendown()
color("white")
begin_fill()
fillcolor("white")
circle(6)
end_fill()

rt(160)
penup()
fd(70)
pendown()
color("white")
begin_fill()
fillcolor("white")
circle(7)
end_fill()


penup()
fd(200)
pendown()
color("white")
begin_fill()
fillcolor("white")
circle(4)
end_fill()


penup()
fd(50)
pendown()
color("white")
begin_fill()
fillcolor("white")
circle(5)
end_fill()

lt(90)
penup()
fd(60)
pendown()
color("white")
begin_fill()
fillcolor("white")
circle(6)
end_fill()

lt(90)
penup()
fd(80)
pendown()
color("white")
begin_fill()
fillcolor("white")
circle(7)
end_fill()


rt(45)
penup()
fd(300)
pendown()
color("white")
begin_fill()
fillcolor("white")
circle(7)
end_fill()
      #눈송이

#눈 오는 밤의 무민! 
728x90