Log in to post a comment.

Canvas.setpenopacity(0.85);

const turtle = new Turtle();
turtle.penup();
turtle.goto(96,92);
turtle.pendown();
const layer = 2;
const segments = 9;
let length = 10;
let increment = 0.01;

function spiral() {
    for (let i = 0; i<3000; i++) {
        if (i%segments == segments -1) {
         turtle.left(90);
         turtle.penup();
         turtle.forward(layer);
         turtle.pendown();
         turtle.right(90);
         length += increment;
         increment += 0.01;
    }
    turtle.forward(length);
    turtle.right(360/segments);
    }
}

function walk(i) {
    spiral();
    
    turtle.penup();
    turtle.goto(96, 92);
    turtle.left(20);
    turtle.pendown();
    const layer = 2;
    const segments = 9;
    length = 10;
    increment = 0.01;
    spiral();
    return 0;
}