Spin Maze
Log in to post a comment.
// You can find the Turtle API reference here: https://turtletoy.net/syntax Canvas.setpenopacity(1); // Global code will be evaluated once. const turtle = new Turtle(); turtle.penup(); turtle.goto(0,0); turtle.pendown(); var length = 1; var angle = 90; // The walk function will be called until it returns false. function walk(i) { turtle.forward(length); length ++; turtle.right(angle); angle += 0.0015; return i < 300; }