# rotateLine ``` #SquareSpiral1.py import turtle as t # t = turtle.Pen() t.speed(0) t.hideturtle() t.bgcolor("black") sides=6 colors=["red","yellow","green","blue","orange","purple"] n1,a = 117,2.5 for x in range(n1): t.pencolor(colors[x%sides]) t.forward((x*3/sides+x)*a) t.left(360/sides+1) t.width(x*sides/200) t.pencolor(colors[n1%sides]) t.forward((n1*3/sides+n1-20)*a) t.width(n1*sides/200) t.exitonclick() ``` 
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up