Going down

Beauty is in the eye of the beholder.

Log in to post a comment.

Canvas.setpenopacity(0.6);

const turtle = new Turtle();
const iters = 12500;
let x, y, sx, sy, i, j, si, sj, sine, len, l;

function walk(i) {
    y = 100-(200*i/iters);
    x = -110+220*Math.random();
    turtle.jump(x,y);
    turtle.seth(45+Math.random()*90);
    len = Math.random()*25-22*i/iters;
    for (l = len; l > 0.5; l*=0.75) {
        turtle.forward(l);
        turtle.left(30*Math.sin(20*l));
    }
    return i < iters;
}