---
# System prepended metadata

title: rotateLine

---

# 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()
```
![](https://i.imgur.com/wQr27Lz.png)