Not centred properly...
Log in to post a comment.
// You can find the Turtle API reference here: https://turtletoy.net/syntax Canvas.setpenopacity(0.01); // Global code will be evaluated once. const turtle = new Turtle(); turtle.penup(); turtle.goto(-50,50); turtle.pendown(); turtle.seth(270); const ITER = 80000; // The walk function will be called until it returns false. function walk(i) { if (i < 20000) { turtle.forward(100); turtle.right(90.01); } else if (i === 20000) { turtle.penup(); turtle.goto(-36,36); turtle.pendown(); turtle.seth(270); } else if (i < 60000) { turtle.forward(72); turtle.right(90.0006); } else if (i === 60000 ) { turtle.penup(); turtle.goto(-36,10); turtle.pendown(); turtle.seth(270); } else { turtle.forward(20); turtle.right(90 + i * 0.005); } return i < ITER; }