Coral Colors

Sputniko! · 2025

A grainy green panel covered with organic, blobby puddles of coral red, hot pink, blue, purple and dark maroon that merge and flow like a lava lamp or coral reef, dotted with small holes. The blobs spill past the panel edge onto a cream border as scattered droplets. Vivid and biomorphic.
Sputniko! · via Art Blocks ↗ · © the artist

A generative series by Sputniko! on the theme of coral reefs — ecosystems renowned for their beauty and vital as habitats for marine life, yet increasingly threatened by coral bleaching driven by global warming. The work turns the colours of living and bleaching coral into a generative meditation on a fragile, warming ocean.

How it works

Branching coral shapes are grown by diffusion-limited aggregation — random walkers sticking one by one to seed branches — then blurred and thresholded into organic silhouettes, and coloured by a Perlin-noise field that blends each output's living-coral and bleached-coral palette by a hash-chosen bleaching level.

An sfc32 PRNG (`Random`) seeds everything, and a few weighted features (`calF`/`getF`) fix each output: which of seven coral palettes (`PS`, shuffled), a bleaching level `b` (weights biased toward heavy bleaching), a coral type, and an overlay/composite mode. The shapes come from diffusion-limited aggregation. The `Coral` class seeds a handful of stuck "branch" particles and a cloud of free `Walker`s; in `grow`, each walker random-walks one step at a time and, when it comes within radius of a branch particle (`stick` via `distSq`), freezes and joins that branch — so dendritic, coral-like structures accrete until enough walkers have stuck. A second pass (`around`) scatters a halo of particles at growing radii around the mass. `show` then renders the particles as filled circles and applies p5's `BLUR` then `THRESHOLD` filters, turning the point cloud into a smooth organic silhouette, and copies luminance into the alpha channel to make a coral-shaped mask. Colour is applied by `noiseTex`: for every "on" pixel of the silhouette a Perlin `noise` value is compared against the bleach threshold `b` to choose between a living-coral and a bleached-coral palette colour, offset in HSB (`hsboff`) and jittered in RGB (`rgbshift`), then stamped as a small displaced ellipse — so the reef reads as a noisy field of living and bleached tissue. Finally `bg`/`reef` composite a noise-textured ground and the coral layers with `MULTIPLY`, `BURN`, `OVERLAY` and `SOFT_LIGHT` blend modes, adding edge lines (`pgEdge`) and masking by the coral alpha (`pgMask`). This decomposition is grounded in the actual on-chain generator script (sha-256 e0d0a50d…, 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 (2025-01) → art-blocks
Script hash
e0d0a50d6dabad39e286a833b51e7c9a5a81ba6f05928e673ba5f52dfa221cce
On-chain
ethereum · 0x0000000bf96eb73f37239f61c9344e40d4c3f665 · #1

View generator ↗ · Art Blocks ↗

Sources

Last updated 2026-07-16