Liking cljdoc? Tell your friends :D

dk.simongray.colour-coded.impl

The conversion and interpolation of colour maps by the rules of CSS Color 4, which syntax uses for color-mix(), and mix for the rest.

A colour here is a map of its :space, :coords and :alpha, which these functions don't check. https://www.w3.org/TR/css-color-4/#interpolation

The conversion and interpolation of colour maps by the rules of CSS Color
4, which syntax uses for color-mix(), and mix for the rest.

A colour here is a map of its :space, :coords and :alpha, which these
functions don't check.
https://www.w3.org/TR/css-color-4/#interpolation
raw docstring

carry-forwardclj/s

(carry-forward c space)

The colour map c in the space, where each component that's analogous to one missing from c is missing too, e.g. the hue of OKLCH when HSL's is missing.

The colour map `c` in the `space`, where each component that's analogous
to one missing from `c` is missing too, e.g. the hue of OKLCH when HSL's
is missing.
sourceraw docstring

fix-huesclj/s

(fix-hues h1 h2 method)

The hues h1 and h2, in degrees, with 360 added to one of them so that a linear interpolation turns as the method says: :shorter, :longer, :increasing or :decreasing.

The hues `h1` and `h2`, in degrees, with 360 added to one of them so that
a linear interpolation turns as the `method` says: :shorter, :longer,
:increasing or :decreasing.
sourceraw docstring

interpolateclj/s

(interpolate a b space hue-method)

A function that takes a progress from 0 to 1 and returns the colour that far from the colour map a to b, interpolated in the space with the hue-method of fix-hues, by the rules of CSS Color 4.

A function that takes a progress from 0 to 1 and returns the colour that
far from the colour map `a` to `b`, interpolated in the `space` with the
`hue-method` of fix-hues, by the rules of CSS Color 4.
sourceraw docstring

toclj/s

(to c space)

The colour map c in the space.

The colour map `c` in the `space`.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close