Cool Star Thingy

Just a modified version of the example turtle.

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.penup();
turtle.goto(-50,-20);
turtle.pendown();

// The walk function will be called until it returns false.
function walk(i) {
    let x = i*.0005;
    let y = i*.56
    turtle.forward(100+y);
    turtle.right(144+x);
    return i < 2000;
}