Some circles
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.degrees() // The walk function will be called until it returns false. turtle.pendown(); function walk(i) { if (i % 2 === 0) { for (var x = 0; x < 10; x++) { const radius = 10 * i + x; turtle.penup(); turtle.goto(0, -radius * .5 - x) turtle.seth(i * 2) turtle.pendown(); turtle.circle(radius); } } return i < 40; }