Another HRG-inspired one.
Log in to post a comment.
Canvas.setpenopacity(0.125); const turtle = new Turtle(); let x, y, term; function walk(i) { x = -120+240*Math.random(); y = -120+240*Math.random(); turtle.penup(); turtle.goto(x,y+86); turtle.seth(Math.random()*360); turtle.pendown(); term = (0.741*Math.log2(Math.abs(x))-0.404*Math.log2(Math.abs(x*y)))-0.171*Math.log2(Math.abs(x+y)); turtle.seth((360*term)%360) for (let l = 1-0.5*term; l > 0.1; l*=0.97) { turtle.forward(l); turtle.left(16+4*term); } return i < 50000; }