Margaret
qubibi · 2023
A fully on-chain generative series of 100 works by qubibi, gathered under the refrain "Smile, Margaret, smile." Each Margaret appears differently depending on the viewing environment, so that every collector encounters their own version — a live, browser-based portrait that resists a single fixed image.
How it works
A crude painted "room" — a coloured ground, a dark rectangle and a red circle — is put through an image-processing feedback loop for a set number of frames: layer-blend, integral-image box blur, difference-blend, brightness/contrast/invert and HSB hue-rotation, each frame folding back into the last, until a shimmering portrait settles and is finished with a shader polish, a tiny pixel heart and barcode marks.
The work is a browser feedback loop, and its exact result depends on the viewing environment: `calculateCanvasSize` fits the canvas to the viewport, which is why "every collector encounters their own version." A fxrand-style PRNG drives the choices. The source is deliberately crude: each frame (for the first 47) `f_room` clears an offscreen buffer, paints one of three ground colours, rotates by `naname`, and drops a dark rectangle and a red circle at jittered positions — a minimal stand-in for a face in a room. Then for every frame up to `stopcc` the piece runs a fixed processing chain over its buffers: `f_blend_alp` alpha-composites the main image into an overlay (`g_kasane`) and the room into the main; `boxblurIntegralXY` blurs both with a summed-area-table (integral image) box blur at separate, randomly wiggled horizontal/vertical radii; `f_blend_diffe` difference- blends the main against the blurred overlay (the step that grows edges and shimmer); `f_akarusacontra` adds a decaying brightness, applies a per-channel contrast and then inverts every channel; and `f_saidokaitenRGB` converts each pixel to HSB, lifts saturation by a weighted channel mix and rotates the hue by a random `rotarota`, back to RGB. Because the main and overlay buffers feed back into one another each frame, the crude room slowly folds into a soft, high-contrast, hue-shifted portrait. When the counter reaches `stopcc`, `f_effects` runs finishing WebGL shader passes (further blur and a colour-matrix that adjusts brightness, contrast and hue), a 9×8 pixel-bitmap heart (`drawHeart`) is stamped at a random spot, and the barcode rectangles set up in `f_barcodeset` are laid in — then it stops. This decomposition is grounded in the actual on-chain generator script (sha-256 f23e4348…, recorded above), not reconstructed.
Details
View generator ↗ · Art Blocks ↗
Sources
- On-chain artblocks.io ↗ — Art Blocks collection page (Margaret, fully on-chain, edition 100, 2023).
Last updated 2026-07-16