100 Sunsets
Zach Lieberman · 2022
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
View generator ↗ · Art Blocks ↗
Sources
- On-chain artblocks.io ↗ — Art Blocks collection page (100 Sunsets, fully on-chain, edition 100, 2022).
Last updated 2026-07-16