Event Horizon

Kim Asendorf · 2023

A near-empty dark grey field scattered with small monochrome pill- and disc-shaped fragments — some filled with fine glitchy noise or concentric swirls, others solid black or grey — with faint horizontal streaks and ghostly rectangles. Sparse, minimal and glitch-like, as if debris drifting in a void.
Kim Asendorf · via Art Blocks ↗ · © the artist

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

Runtimes
Browser (Canvas / 2D), On-chain Deterministic
Movement
Long-form Generative Art
Medium
On-chain generative edition
Relations
released-on (2023-05) → art-blocks
Script hash
87c4def14385d4df5b6b92a66dd67b15651332cb60de83e1d4a79b9477b68e26
On-chain
ethereum · 0x0a1bbd57033f57e7b6743621b79fcb9eb2ce3676 · #44

View generator ↗ · Art Blocks ↗

Sources

Last updated 2026-07-16