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
(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.
(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.
(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.
(to c space)The colour map c in the space.
The colour map `c` in the `space`.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |