Fork of New Turtle

Play with the sliders

Log in to post a comment.

// You can find the Turtle API reference here: https://turtletoy.net/syntax
Canvas.setpenopacity(1);

const count = 63; //min=15 max=500 step=1
const offset = 0.28; //min=0 max=5 step=0.001

// Global code will be evaluated once.
const turtle = new Turtle();
turtle.penup();
turtle.goto(-50,-20);
turtle.pendown();

// The walk function will be called until it returns false.
for (let i = 0; i < count; i=i + 1) { 
    turtle.forward(100);
    turtle.right(144 + offset);

}