Liking cljdoc? Tell your friends :D

dk.simongray.colour-coded.difference

How different two colours look, by the measures of colour difference that CSS Color 4 gives, in section 20.

  • delta-e, the distance in Oklab, ΔEOK, of which 0.02 is about the least difference that shows
  • delta-e-ok2, ΔEOK with a and b doubled, which Ottosson found to fit the data of perceived differences better
  • delta-e-76, the distance in CIELAB, CIE76, of which 2.3 is about the least that shows (Sharma and Trussell 1997)
  • delta-e-2000, CIEDE2000, the standard of the CIE, of which 1 to 2 is about the least that shows

https://www.w3.org/TR/css-color-4/#color-difference

How different two colours look, by the measures of colour difference
that CSS Color 4 gives, in section 20.

- delta-e, the distance in Oklab, ΔEOK, of which 0.02 is about the least
  difference that shows
- delta-e-ok2, ΔEOK with a and b doubled, which Ottosson found to fit
  the data of perceived differences better
- delta-e-76, the distance in CIELAB, CIE76, of which 2.3 is about the
  least that shows (Sharma and Trussell 1997)
- delta-e-2000, CIEDE2000, the standard of the CIE, of which 1 to 2 is
  about the least that shows

https://www.w3.org/TR/css-color-4/#color-difference
raw docstring

delta-eclj/s

(delta-e a b)

ΔEOK, the distance of the colours a and b in Oklab, of which 0.02 is about the least that shows.

ΔEOK, the distance of the colours `a` and `b` in Oklab, of which 0.02 is
about the least that shows.
sourceraw docstring

delta-e-2000clj/s

(delta-e-2000 a b)

CIEDE2000, the difference of the colours a and b in CIELAB, of which 1 to 2 is about the least that shows.

CIEDE2000, the difference of the colours `a` and `b` in CIELAB, of which
1 to 2 is about the least that shows.
sourceraw docstring

delta-e-76clj/s

(delta-e-76 a b)

CIE76, the distance of the colours a and b in CIELAB.

CIE76, the distance of the colours `a` and `b` in CIELAB.
sourceraw docstring

delta-e-ok2clj/s

(delta-e-ok2 a b)

ΔEOK2, the distance of the colours a and b in Oklab with a and b doubled, of which 0.02 is about the least that shows.

ΔEOK2, the distance of the colours `a` and `b` in Oklab with a and b
doubled, of which 0.02 is about the least that shows.
sourceraw docstring

leastclj/s

(least xs)
(least xs f)

The least difference between any two colours of xs, by ΔEOK or by the measure f, or nil for fewer than two colours.

The least difference between any two colours of `xs`, by ΔEOK or by the
measure `f`, or nil for fewer than two colours.
sourceraw docstring

nearestclj/s

(nearest x xs)
(nearest x xs f)

The colour of xs nearest to the colour x by ΔEOK, or by the measure f, a function of two colours, e.g. delta-e-2000.

The colour of `xs` nearest to the colour `x` by ΔEOK, or by the measure
`f`, a function of two colours, e.g. delta-e-2000.
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