#### <sup>[Ollin](../../index.md) → [Examples](../index.md) → Color</sup>

---

## Color

| [![ColorVision](https://media.ollin.art/examples/Color/ColorVision/still-640.jpg?v=75f0fb48)](colorvision.md) | [![ColorWaves](https://media.ollin.art/examples/Color/ColorWaves/still-640.jpg?v=c29d2429)](colorwaves.md) | [![Colormaps](https://media.ollin.art/examples/Color/Colormaps/still-640.jpg?v=4e06b898)](colormaps.md) | [![Dithering](https://media.ollin.art/examples/Color/Dithering/still-640.jpg?v=0d647cc9)](dithering.md) |
|---|---|---|---|
| [ColorVision](colorvision.md) | [ColorWaves](colorwaves.md) | [Colormaps](colormaps.md) | [Dithering](dithering.md) |
| [![Gradients](https://media.ollin.art/examples/Color/Gradients/still-640.jpg?v=ce8739f0)](gradients.md) | [![HSBWheel](https://media.ollin.art/examples/Color/HSBWheel/still-640.jpg?v=ec947957)](hsbwheel.md) | [![Harmonies](https://media.ollin.art/examples/Color/Harmonies/still-640.jpg?v=4908872e)](harmonies.md) | [![Look](https://media.ollin.art/examples/Color/Look/still-640.jpg?v=b880cd24)](look.md) |
| [Gradients](gradients.md) | [HSBWheel](hsbwheel.md) | [Harmonies](harmonies.md) | [Look](look.md) |
| [![Mixing](https://media.ollin.art/examples/Color/Mixing/still-640.jpg?v=9d733025)](mixing.md) | [![PaletteFile](https://media.ollin.art/examples/Color/PaletteFile/still-640.jpg?v=baf88afa)](palettefile.md) | [![PaletteFromImage](https://media.ollin.art/examples/Color/PaletteFromImage/still-640.jpg?v=3f3d36fc)](palettefromimage.md) | [![PrintSeparation](https://media.ollin.art/examples/Color/PrintSeparation/still-640.jpg?v=4aad09ce)](printseparation.md) |
| [Mixing](mixing.md) | [PaletteFile](palettefile.md) | [PaletteFromImage](palettefromimage.md) | [PrintSeparation](printseparation.md) |
| [![Shades](https://media.ollin.art/examples/Color/Shades/still-640.jpg?v=911b8d0e)](shades.md) | [![SoftProof](https://media.ollin.art/examples/Color/SoftProof/still-640.jpg?v=768b9eef)](softproof.md) | [![Swatchbook](https://media.ollin.art/examples/Color/Swatchbook/still-640.jpg?v=581862c5)](swatchbook.md) |  |
| [Shades](shades.md) | [SoftProof](softproof.md) | [Swatchbook](swatchbook.md) |  |

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

| Example | What it shows |
|---|---|
| [Colormaps](colormaps.md) | the 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 |
| [ColorVision](colorvision.md) | a 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 |
| [ColorWaves](colorwaves.md) | a row of circles colored by a sine wave, with the circles flowing back and forth with `time` |
| [Dithering](dithering.md) | a bundled photograph reduced to four extracted colors in six ways: plain nearest-color, ordered Bayer, blue noise, and three error-diffusion kernels |
| [Gradients](gradients.md) | gradient 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 |
| [Harmonies](harmonies.md) | a base color that drifts, with its complementary, split-complementary, triadic, and analogous palettes, plus the analogous set drawn as a `Ramp` |
| [HSBWheel](hsbwheel.md) | a turning HSB color wheel, with hue running around the wheel and saturation growing outward, over a backdrop colored from a hex literal |
| [Mixing](mixing.md) | the 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` |
| [Look](look.md) | a 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 |
| [PaletteFile](palettefile.md) | palettes 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 |
| [PaletteFromImage](palettefromimage.md) | a palette built by clustering a bundled photograph's pixels, a woman before a wall of marigolds, most-used color first |
| [PrintSeparation](printseparation.md) | a sunrise poster split into three spot-ink printing masters, with a halftoned overprint preview and a view parameter that switches between them |
| [Shades](shades.md) | four 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 |
| [SoftProof](softproof.md) | a 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 |
| [Swatchbook](swatchbook.md) | the 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`.
