Ollin

Color

These examples cover palettes, colormaps, and color driven by a value or by time.

ExampleWhat it shows
Colormapsthe eight perceptual Colormap ramps drawn as horizontal bands that map a value to a color, with the seven cosine-gradient CosinePalette presets scrolling in a labeled section below
ColorVisiona photograph of woven blankets and two palettes shown four ways, with a bar that marks every pair of colors that merge, and Filter.colorVision applied to the whole canvas when a parameter turns it on
ColorWavesa row of circles colored by a sine wave, with the circles flowing back and forth with time
Ditheringa bundled photograph reduced to four extracted colors in six ways: plain nearest-color, ordered Bayer, blue noise, and three error-diffusion kernels
Gradientsgradient paint used throughout: a linear gradient for the sky, a radial gradient for the sun, ramps along the path of a Bézier and a polyline, a conic sweep around a ring, and per-vertex shading on a star and a curved shape
Harmoniesa base color that drifts, with its complementary, split-complementary, triadic, and analogous palettes, plus the analogous set drawn as a Ramp
HSBWheela turning HSB color wheel, with hue running around the wheel and saturation growing outward, over a backdrop colored from a hex literal
Mixingthe same two colors mixed in RGB, HSB, OKLab, OKLCH, OKHSL, and paint (Kubelka-Munk over spectra), one band per space, with each band's midpoint read back through hue, saturation, and brightness
Looka look from a .cube file wiped across a bundled portrait: the bundled warm print, the identity table, a look written in code, and any .cube file dropped on the window, with the amount on a parameter
PaletteFilepalettes read from disk: a CSV file that holds six palettes, and a file with one hex color per line that holds one palette, loaded with no format declared
PaletteFromImagea palette built by clustering a bundled photograph's pixels, a woman before a wall of marigolds, most-used color first
PrintSeparationa sunrise poster split into three spot-ink printing masters, with a halftoned overprint preview and a view parameter that switches between them
Shadesfour colors taken from a photograph of woven blankets, each grown into a ramp of shades whose hue warms in the light and cools in the shadow, the photograph snapped cell by cell to the nearest shade, and the lightness histograms of both
SoftProofa poster converted into a press profile and back before it is printed, so the colors the ink cannot reproduce show up changed on screen, next to the gamut check and the process plates
Swatchbookthe built-in qualitative Palette sets drawn as labeled swatch rows, with a highlight driven by a wrapping index

Run one with swift run Example-Color-<Name>, for example swift run Example-Color-Colormaps.

↑↓ move ↩ open