const luminance = (r * .2126 + g * .7152 + b * .0722) / 255;
const value = clamp((luminance - .07) * 1.35);
const color = colorAt(value, preset.colors); // lavender → blue → vermilion ramp
const grain = (Math.sin(i * 127.1 + 31.7) * 43758.5453 % 1) * 1.7; // stable, not per frameASCII atmosphere
Somewhere between a photograph and a signal.
HazeLight becomes language.
Loading the landscape…
Key CSS & implementation tricks
const ramp = ' .,:;iloahkbdpqwmZO0QLCJUYXzcvunxrjft/\\|()1{}[]?-_+~<>!I;:MW#&8%B@$';
const band = Math.sin(Math.PI * y / h) ** 1.3; // denser in the middle
const edge = Math.abs(value - values[neighbour]); // contours read stronger
const alpha = (.1 + band * .27 + Math.min(.16, edge * 3)) * (1 - Math.abs(value - .5) * .75);
text.fillText(ramp[Math.floor(value * (ramp.length - 1))], x, y);.artwork { animation: drift 28s ease-in-out infinite alternate paused; }
@keyframes drift { from { transform: scale(1.025); } to { transform: scale(1.045) translate(.8%, -.5%); } }
art.style.animationPlayState = drifting && !document.hidden && !motion.matches ? 'running' : 'paused';