Liking cljdoc? Tell your friends :D

dk.simongray.colour-coded.choose

Colours chosen from among others, e.g. from the palette of an image or from colours that a designer made.

Colours chosen from among others, e.g. from the palette of an image or
from colours that a designer made.
raw docstring

chromaclj/s

(chroma x)

The chroma of the colour x in OKLCH: 0 for a grey, and about 0.3 at most in sRGB.

The chroma of the colour `x` in OKLCH: 0 for a grey, and about 0.3 at
most in sRGB.
sourceraw docstring

chromatic?clj/s

(chromatic? x)
(chromatic? x c)

Whether the colour x has an OKLCH chroma of at least c, by default 0.04, which off-whites and near-greys don't.

Whether the colour `x` has an OKLCH chroma of at least `c`, by default
0.04, which off-whites and near-greys don't.
sourceraw docstring

first-with-contrastclj/s

(first-with-contrast xs background r)

The first colour of xs whose contrast ratio with the background is at least r, or nil. WCAG 2.2 asks for 3 for a control.

The first colour of `xs` whose contrast ratio with the `background` is at
least `r`, or nil. WCAG 2.2 asks for 3 for a control.
sourceraw docstring

most-contrastclj/s

(most-contrast xs background)

The colour of xs that contrasts most with the background.

The colour of `xs` that contrasts most with the `background`.
sourceraw docstring

seedclj/s

(seed palette)

The first chromatic colour of the palette, which lists the most common first, to derive the colours of a UI from, or nil where every colour is about grey.

The first chromatic colour of the `palette`, which lists the most common
first, to derive the colours of a UI from, or nil where every colour is
about grey.
sourceraw docstring

spreadclj/s

(spread xs d)

The colours of xs that differ by a ΔEOK of at least d from every colour kept before them, e.g. 0.1 for colours that are clearly apart.

The colours of `xs` that differ by a ΔEOK of at least `d` from every
colour kept before them, e.g. 0.1 for colours that are clearly apart.
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