Programming/Python
[Python] 터틀 그래픽 낙서
graygreat
2017. 4. 4. 01:42
728x90
반응형
import turtle colors = ["red", "purple", "blue", "green", "yellow", "orange"] t = turtle.Turtle() turtle.bgcolor("black") t.speed(0) t.width(3) length = 10 while length < 500 : t.fd(length) t.pencolor(colors[length%6]) t.right(89) length+=5
반응형