Share your repls and programming experiences

← Back to all posts
##### Spiral Art!

Change the turn angle and you can draw different spirals!

##### Comments
hotnewtop
KadenBosustow (3)

i forked it to make it better here's the new code hope it helped as this is just a straight line rn

KadenBosustow (3)

import turtle
import math
from random import randint
t = turtle.Turtle()
t.shape("turtle")
t.speed(1000)

turn_angle = 70 # Change this number to try different shapes

for i in range(2, 400, 2):
t.forward(i/2)
t.left(turn_angle/2)
t.forward(i/2)
t.left(turn_angle/2)
turn_angle = 70 # Change this number to try different shapes

for i in range(2, 400, 2):
t.forward(i/2)
t.left(turn_angle/2)
t.forward(i/2)
t.left(turn_angle/2)
turn_angle = 70 # Change this number to try different shapes

for i in range(2, 400, 2):
t.forward(i/2)
t.left(turn_angle/2)
t.forward(i/2)
t.left(turn_angle/2)
turn_angle = 70 # Change this number to try different shapes

for i in range(2, 400, 2):
t.forward(i/2)
t.left(turn_angle/2)
t.forward(i/2)
t.left(turn_angle/2)
turn_angle = 70 # Change this number to try different shapes

for i in range(2, 400, 2):
t.forward(i/2)
t.left(turn_angle/2)
t.forward(i/2)
t.left(turn_angle/2)

KadenBosustow (3)

its just a straight line