Tried the first fractal, but don't see anything yet
https://jbaker.graphics/writings/DEC.html
let p = { x:x, y:y, z:z, w:1 };
for(let i = 0; i < 8; i++)
{
p.x = ((p.x-1) - 2 * Math.floor((p.x-1)/2))-1;
p.y = ((p.y-1) - 2 * Math.floor((p.y-1)/2))-1;
p.z = ((p.z-1) - 2 * Math.floor((p.z-1)/2))-1;
let d = p.x*p.x + p.y*p.y + p.z*p.z;
p.x*=1.4/d;
p.y*=1.4/d;
p.z*=1.4/d;
p.w*=1.4/d;
}
let length = (p) => { p.x/=p.w; p.z/=p.w; return Math.sqrt(p.x*p.x+p.z*p.z); };
return length(p)*0.25;