oof

625 Turtles, starting at 90 degrees

Log in to post a comment.

Canvas.setpenopacity(0.1);

let j = 0;
turtles = [];
for(j = 0; j < 625; j++) {
    turtles.push(new Turtle());
    
    turtles[j].penup();
    turtles[j].goto(-98 + (j % 25)*19.75/2.5,95 - Math.floor(j/25)*19.25/2.5);
    turtles[j].pendown();
}

function walk(i) {
    for(j = 0; j < 625; j++) {
        turtles[j].forward(12/2.5);
        turtles[j].right(90 + j);
    }
    return i < 500;
}