Background
I've started a practice of analyzing generative artworks that stop me in my tracks, then reproducing their principles in code. The first subject of this lab log is the grid-based animation of @seohyo, a Seoul-based media artist whose work I deeply admire. Dots, donuts, crosses, and stripes pack a dense lattice on a black ground, and organic masses slowly breathe in place with no scrolling and no drift. It looks intricate at first, but the more I picked it apart, the more it read like a textbook case of richness from few rules.
I reproduced it as a single HTML file in vanilla Canvas 2D with zero dependencies. The structure maps one-to-one onto a Processing/p5.js sketch, so it transplants directly.
Reading the Piece
After watching the animation for a long while, my hypothesis came down to three sentences.
- Divide the canvas into a square lattice, 42 cells along the short side.
- Sample 3D noise at
(x, y, t). Lettflow slowly and the field evolves in place instead of translating. - Cut the continuous field value into 9 bands, and map each band to a restricted glyph vocabulary and palette.
In pseudocode it reads as follows.
for (each cell i, j) {
v = fbm(i * scale, j * scale, t); // noise field with a time axis
band = quantize(v); // thresholds decide the band
drawGlyph(glyphs[band], palette[band], i, j);
}Implementation Notes
Noise from scratch
To keep the file dependency-free, I built the noise myself. I wrote a hash3 that bit-mixes integer lattice points and layered 3D value noise on it, interpolating with smoothstep. On top of that I added fBm stacking three octaves of rising frequency.
function fbm(x, y, z) {
return (vnoise(x, y, z) * 0.62 +
vnoise(x * 2.13 + 31, y * 2.13 + 17, z * 1.7) * 0.26 +
vnoise(x * 4.31 + 57, y * 4.31 + 91, z * 2.9) * 0.12);
}One octave gave blobs that were too bland. Adding octaves made the boundaries sizzle like the original.
Thresholds come from the distribution's quantiles
My first attempt cut 0–1 into nine equal intervals, and the result looked nothing like the original. fBm output is bell-shaped and bunched around 0.5, so equal intervals bloat the middle bands. Only when I drew the thresholds from the quantiles of the fBm distribution, directly pinning each band's share of the screen, did the original's density balance appear. Black negative space was set to about 24%. I had to design areas instead of values.
Contour lines = donut chains
The signature of this piece is the chain of donuts that beads along region boundaries. It turns out to be a byproduct of quantization, not separate logic. A very narrow band (e.g. 0.465 ≤ v < 0.478) shows up as a one-cell-wide staircase ribbon tracing the noise field's contour line. Assign the donut glyph to that band, and the contour becomes a chain. No marching squares required.
Constraint creates coherence
The palette is restricted to four colors (black, vermilion, cream, taupe) and the glyphs to five shapes: circle, donut, cross, stripes, square. Within a band, a second noise n2 and coordinate parity (i + j) & 1 vary color and size. Because the rules are few and global, any crop of the screen reads as the same work. Because the variation is local, it never gets boring.
} else if (v < 0.478) { // contour line: donut chain
gDonut(px, py, s, CREAM, RED);
} else if (v < 0.514) { // cross field
gPlus(px, py, s, n2 < 0.4 ? TAUPE : n2 < 0.8 ? GREY : RED);
if (!par) gCircle(px, py, s, n2 < 0.4 ? TAUPE : GREY, 0.09);
}What I Learned
- The skeleton of a complex-looking screen is one line: field → quantize → lookup. The richness comes from small decisions layered onto each stage of the pipeline (octaves, quantiles, glyph vocabulary).
- When slicing noise, look at the distribution of values, not their range. Each band's share of the screen is the composition.
- One narrow band stands in for marching squares. Treating quantization's staircase artifact as a formal language rather than a bug is the heart of this style.
- A vocabulary as narrow as four colors and five glyphs is exactly what binds the whole screen into a single work.
For the next study I plan to dissect a different artist's work built on an agent-based system rather than a field.
- Source repository: Lab02-CreativeCoding-Processing
- Original style: @seohyo, with deep respect and admiration for the artist. A study homage, not a reproduction.