Circle experiment
Log in to post a comment.
// You can find the Turtle API reference here: https://turtletoy.net/syntax Canvas.setpenopacity(.2); // Global code will be evaluated once. const turtle = new Turtle(); turtle.penup(); turtle.goto(-0,-20); turtle.pendown(); // The walk function will be called until it returns false. function walk(i) { turtle.pendown(); turtle.forward(i*0.005); turtle.circle(100); turtle.penup(); turtle.forward(3); turtle.right(7); return i < 360*4; }