Event Horizon
Kim Asendorf · 2023
A fully on-chain generative series of 100 works by Kim Asendorf: a minimal simulation of circular energy fields that travel along paths and manipulate the matter within their reach, mixing and interfering as they move — an austere, physics-like system rendered in his signature pixel idiom.
How it works
Two coupled layers: a 2D canvas draws gradient "energy-field" discs that crawl along paths and blend with each other, and a WebGL feedback shader reads that canvas as a per-pixel instruction map — displacing, resetting, inverting and channel-swapping a fine colour grid every frame, so the moving fields appear to push and tear the matter within their reach.
Everything is seeded by an sfc32 PRNG (`Random`). The piece is two coupled layers rendered every frame. The first is a plain 2D canvas, `C2dMotion`: it places `Obj`s that travel along precomputed paths — straight `getLine`s, `getCircle`s, or random orthogonal walks (`getStepAndLength`) — each drawn as a small square plus a radial gradient disc (its "energy field"). Ten composition templates (`comps[0…9]`, weighted-chosen) scatter many such objects — single lines, parallel groups, circle grids — across the frame, and the whole canvas is composited with a weighted-random blend mode from {lighter, color-dodge, soft-light, hue, saturation, luminosity}, so overlapping fields mix and interfere. Its output `ImageData` is the "motion" buffer. The second layer is a WebGL2 ping-pong feedback shader operating on a "matter" image — `createPixels` seeds a fine two-colour grid (dot or diagonal pattern, spacing 2 or 4) in a foreground/background pair chosen by a weighted colour mode. Each frame the fragment shader reads the previous frame (`buf`), the seed image (`img`) and the motion buffer (`mot`), and treats the motion pixel's red channel as a bitfield: separate bits displace the pixel by one texel along an angle taken from the motion gradient (`atan2` of neighbours) with different phase offsets, re-seed it from the source image, channel-swap it (`.gbr` via an edge test), invert it, or resample the image at a time-varying scale. Because the buffer feeds back into itself, these per-pixel nudges accumulate into flowing, tearing trails wherever a field passes — the "manipulation of matter within reach." A final pass flips y and blits to screen. The readable GLSL is quoted in the script, so the shader operations above are the code's own, not inferred. This decomposition is grounded in the actual on-chain generator script (sha-256 87c4def1…, recorded above), not reconstructed.
Details
View generator ↗ · Art Blocks ↗
Sources
- On-chain artblocks.io ↗ — Art Blocks collection page (Event Horizon, 100 works, fully on-chain, 2023).
Last updated 2026-07-16