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 = -200/Math.log10(-100+200*Math.random())+200;
    x = -110+220*Math.random();
    turtle.penup();
    turtle.goto(x,y);
    turtle.seth(45+Math.random()*90);
    turtle.pendown();
    len = 10+Math.random()*10;
    for (l = len; l > 0.5; l*=0.75) {
        turtle.forward(l);
        turtle.left(30*Math.sin(20*l));
    }
    return i < iters;
}