Margaret

qubibi · 2023

A high-contrast black-and-white organic mass filling the frame on a dark grainy ground, built from dense concentric contour bands like wood grain or geological strata. Several nested eye- or knot-like loops sit within it, and a thin vertical line descends from the centre — reading as a monochrome topographic map or a cross-section of wood or stone.
qubibi · via Art Blocks ↗ · © the artist

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

Tools
p5.js
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
f23e4348fb9e517e2f36c316b43497083ac320dfc90b86b525ab08fd44cf8272
On-chain
ethereum · 0x0a1bbd57033f57e7b6743621b79fcb9eb2ce3676 · #49

View generator ↗ · Art Blocks ↗

Sources

Last updated 2026-07-16