mandatory description
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(); function fertility(startx, starty, magnitude) { turtle.penup(); turtle.goto(startx, starty); turtle.pendown(); turtle.circle(-magnitude/2, 180); turtle.forward(magnitude * 7 / 4); turtle.left(90); turtle.circle(magnitude/2); turtle.penup(); turtle.forward(magnitude); turtle.pendown(); turtle.circle(magnitude/2); turtle.left(90); turtle.forward(magnitude * 7 / 4) turtle.left(90); turtle.forward(magnitude/2); turtle.right(90); turtle.forward(magnitude/2); turtle.backward(magnitude/2); turtle.left(90); turtle.forward(magnitude/2); turtle.left(90); turtle.forward(magnitude*7/4) turtle.left(180); } function walk(i) { fertility(10, 10, 30); turtle.left(20) return (i < 18); }