Canvas.setpenopacity(0.5); const scale = 2; const extent = 100; const iters = 168000; const turtle = new Turtle(); turtle.penup(); turtle.goto(-0.5+Math.random(), -0.5+Math.random()); turtle.seth(360*Math.random()) turtle.pendown(); function walk(i) { turtle.forward(scale*i/iters); const x = turtle.x(); const y = turtle.y(); turtle.right(scale-0.5*(i^(Math.pow(y, x)-i*x^i*y*Math.pow(Math.cos(Math.pow(y, x)), (Math.log2(0.5*(y+i+1))^(1+Math.log10(Math.E*(x+i+1)))))))); turtle.penup(); if (x > extent) turtle.setx(-extent+(x-extent)); else if (x < -extent) turtle.setx(extent-(-1*(x+extent))); if (y > extent) turtle.seth(270); else if (y < -extent) turtle.seth(90); turtle.pendown(); return i < iters; }