Wool

Look what the cat did.

Log in to post a comment.

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

const startRotation = 7; // min=7, max=8, step=.01
var curRotation = 0;

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

// The walk function will be called until it returns false.
function walk(i) {
    
    curRotation = (curRotation == 0) ? startRotation : curRotation;
    
    if (i % 2 == 1) turtle.penup();
    else turtle.pendown();
    
    turtle.forward(1);
    turtle.right(curRotation);
    
    curRotation *= 1.001;
    
    return i < 14400;
}