Drawn in characters
Craft 02 · ASCII, motion
Every character is a shape, not a brightness.
Everything on this page is plain text, redrawn about thirty times a second. Run your pointer through it.
One engine for all of it
Everything here sits on one small engine. A piece is a block of text, and every frame it's redrawn character by character. Each character carries a bit of energy; when the pointer comes within reach it gets kicked away from it, and that energy bleeds off by 7% a frame, so it drifts home instead of snapping back. While it's moving it might show as a speck of dust instead of itself, which is what makes it look scattered rather than shifted.
let e = this.energy[i] * 0.93;
if (d < radius) {
const k = 1 - d / radius;
if (k > e) {
e = k;
this.angle[i] = Math.atan2(dy, dx);
}
}
if (e > 0.06) {
const push = e * e * 3.2;
const nc = c + Math.round(Math.cos(this.angle[i]) * push);
const nr = r + Math.round(Math.sin(this.angle[i]) * push * 0.55);
out[nr][nc] = Math.random() < e * 0.7 ? pick(AGITATE) : ch;
}Ground that knows its slope
The ground is the part that took longest. It's one ridge, a gentle sine, and each column picks its character from two things: where the line falls inside the cell, and how steep it is there. Steep gets a slash, rising and falling get a tick or a dot, flat gets a dash or an underscore depending on whether the ridge sits high or low in the row. I tried a second, farther ridge; it made the band busy, so it went.
function heightChar(frac: number, slope: number) {
if (slope > 0.9) return "\\";
if (slope < -0.9) return "/";
if (frac < 0.5) return slope < -0.3 ? "'" : slope > 0.3 ? "`" : "-";
if (frac < 0.8) return slope < -0.3 || slope > 0.3 ? "." : "-";
return "_";
}The sun in the corner is drawn by hand. A circle computed at this size falls apart into doubled slashes, so it's a quarter disc typed out once and filled with colons that flicker to dots, like heat. The same rule cut a tumbleweed and a walking camel: neither ever read as what it was, and if something can't be drawn well in characters, it doesn't go in.
Threads
Each thread is a chain of points under Verlet integration: every point remembers where it was last frame, keeps 96% of that motion, and gets a little gravity and a slow sideways breeze. Then eight passes pull each pair back to its rest length, with the top point pinned. The fun part is the drawing. Nothing is rotated; each segment looks at its own angle and picks a character for it.
const ang = Math.atan2(b.x - a.x, b.y - a.y);
span.textContent = Math.abs(ang) < 0.16 ? "|" : ang > 0 ? "\\" : "/";Rendered by shape
This is the same turntable, rendered into text by shape rather than brightness. The usual way to make ASCII art treats each cell as a pixel and maps its brightness onto a ramp like .:-=+*#, which blurs every edge. Instead, every candidate character is drawn in JetBrains Mono and measured by how much ink lands in six circles laid out two by three. The picture is sampled with the same six circles, ten more reach into the neighbouring cells to sharpen each sample against what's around it, and the closest character wins. That's how a curved edge comes out as .Y' instead of a smear.
The alphabet is short on purpose. Letters and digits read as noise, and ligatures turn -> into an arrow, so the renderer picks only from punctuation and a few thin letters, with ligatures switched off. To spin it, the record is rotated in the source image ten degrees at a time with the tonearm masked back on top, all 36 frames are rendered ahead of time, and the browser only swaps a block of text every 140 ms. The arm stays put while the record turns under it, the way a real one does.