Log in to post a comment.

// LL 2021
const density = 256; // min=1 max=3000 step=1
const mod = 9; // min=3 max=50 step=1
Canvas.setpenopacity(-1);
const turtle = new Turtle();
function walk(i) {
    const x=i%density, y=Math.floor(i/density);
    //if ((((x+y)^Math.abs(x-y)+1)**37 % 7) == 1) // https://twitter.com/theFoldster/status/1357009413412950016
    //if (((x | y) % mod) == 0)
    //if (((x-128) * 64) % (y-128) == 0)
    if (((x ^ y) % mod) == 0) // https://twitter.com/aemkei/status/1378106731386040322
        dot(((x+0.5)/density-0.5)*200, ((y+0.5)/density-0.5)*200, 100/density);
    return (i+1) < density**2;
}
function dot(x,y,r) {turtle.jump(x-r, y-r); do{turtle.goto(x+r, y-r); turtle.goto(x+r, y+r); turtle.goto(x-r, y+r); turtle.goto(x-r, y-r); r -= 0.2;} while (r>0);}