100 Sunsets

Zach Lieberman · 2022

A marbled, fluid, all-over swirl of concentric ripples and cell-like eddies, as if oil or paint were poured on rippling water. Colours flow from warm golden amber and rust at the top, through teal-blue, to pale cream and ice-blue below, flecked with red — a sunset dissolving across a liquid surface.
Zach Lieberman · via Art Blocks ↗ · © the artist

A fully on-chain generative series of 100 works by Zach Lieberman exploring the feeling of sunsets — the transformation from day to night and the intersection of colour, gradient and time. Drawing its palettes from atmospheric optics, the work does not try to recreate the chaotic noise and oscillation of light on water so much as to capture the feeling of watching a day end and something new begin.

How it works

A sunset is treated as a colour gradient: an atmospheric-optics palette is interpolated cubically in perceptual LAB space into a smooth 1024×64 lookup strip, and a WebGL fragment shader — fed that gradient plus a set of per-token randomized parameters and thirty scattered points — renders the final field, capturing the feeling of light and time rather than simulating water.

The readable engine of the piece is its colour pipeline, and that is what this decomposition covers. A fx-style PRNG (`Random`) drives everything. `parseFrag` reads the fragment shader's source and harvests every uniform annotated with `/////` into a typed `settings[]` list (int or float, each with min/max); `randomize()` then draws a value for each from the hash, so the shader itself declares the parameter space and the token fills it. `createPalette` builds the gradient: it selects one named palette from a dictionary of atmospheric-optics colour sets, converts each stop RGB→LAB (`rgb2lab`), and interpolates between stops with `cubic_interpolate` (a Catmull-Rom-style cubic) to fill a 1024×64 image, converting LAB→RGB (`lab2rgb`) per pixel — so the gradient is perceptually smooth rather than linearly banded, and `doubleExponentialSigmoid` eases where colours sit along it. `randomize` also scatters thirty points (`randomPoints`, ±500) and bakes their angles/positions into small `angleImg`/`posImg` textures. All of this — the gradient strip, the settings uniforms, the point textures — is then handed to a WebGL fragment shader (`minimizedShader` / `loadShaderFromMinized`, `passSettings` → `setUniform`) which does the actual per-pixel rendering of the sunset field. That shader is shipped minimized; its internal GLSL is not decomposed here, so no claim is made about its exact per-pixel maths beyond that it samples the LAB-cubic gradient under the randomized settings. This decomposition is grounded in the actual on-chain generator script (sha-256 6348179e…, 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 (2022-11) → art-blocks
Script hash
6348179e69854bfdc270bc44935034002c34d047304b8b6c19d797cf130f385e
On-chain
ethereum · 0x0a1bbd57033f57e7b6743621b79fcb9eb2ce3676 · #29

View generator ↗ · Art Blocks ↗

Sources

Last updated 2026-07-16