For James
Log in to post a comment.
// You can find the Turtle API reference here: https://turtletoy.net/syntax Canvas.setpenopacity(1); const angle=144; // min=2, max=180, step=1 // Global code will be evaluated once. const turtle = new Turtle(); const number=1; // min=1, max=1000, step=1 const x=0; // min=-100 max=100, step=1 const y=0;// min=-100, max=100, step=1 turtle.penup(); turtle.goto(-x,-y) turtle.pendown(); // The walk function will be called until it returns false. function walk(i) { turtle.forward(100); turtle.right(angle); return i < number; }