I created a pentagram drawing spiral in turtle, but now when I change the variable that is supposed to change the shape (point), nothing happens. What did I do wrong?
It also calculates the distance to go forward by means of the x- and y position. But since the initial pos is 0, I created a temp variable (x) to get started. Is there a way to improve this?
x = 20
point = 3
angle = 720/point
speed(0)
limit = 200
while abs(distance(0,0)) < limit:
penup()
forward(x)
right(45)
pendown()
xpos = xcor()
ypos = ycor()
for i in range(point):
forward(20)
right(angle)
d = math.sqrt(xpos**2 + ypos**2)
x = d
