Liking cljdoc? Tell your friends :D

palette.core


->rgbaclj/s

(->rgba c)
source

darkenclj/s

(darken c)
(darken c percent)

Given color 'c' in either hex or rgb[a] format, darken it by 'percent' [0 1] amount. The percentage removed is calculated (* percent 255). The color's opacity is not affected.

Given color 'c' in either hex or rgb[a] format, darken it by 'percent' [0 1]
amount. The percentage removed is calculated (* percent 255). The color's
opacity is not affected.
sourceraw docstring

hex->rgbaclj/s

(hex->rgba c)
source

hex-stringclj/s

(hex-string & digits)
source

hex?clj/s

(hex? c)
source

hsv->rgbaclj/s

(hsv->rgba hsv)
source

hsv-stringclj/s

(hsv-string h s v)
source

hsv?clj/s

(hsv? c)
source

intensityclj/s

(intensity color)

Return the intensity for 'color'.

Return the intensity for 'color'.
sourceraw docstring

lab-stringclj/s

(lab-string l a b)
source

lab?clj/s

(lab? c)
source

lightenclj/s

(lighten c)
(lighten c percent)

Given color 'c' in either hex or rgb[a] format, lighten it by 'percent' [0 1] amount. The percentage added is calculated (* percent 255). The color's opacity is not affected.

Given color 'c' in either hex or rgb[a] format, lighten it by 'percent' [0 1]
amount. The percentage added is calculated (* percent 255). The color's
opacity is not affected.
sourceraw docstring

magnitudeclj/s

(magnitude c)
source

rem-percentclj/s

source

rgb?clj/s

(rgb? c)
source

rgba->hsvclj/s

(rgba->hsv rgba)
source

rgba->labclj/s

(rgba->lab rgba)
source

rgba-stringclj/s

(rgba-string r g b)
(rgba-string r g b a)
source

similarityclj/s

(similarity c1 c2)

Perform a ciede2000 similarity score calculation between the two colors.

Perform a ciede2000 similarity score calculation between the two colors.
sourceraw docstring

with-intensityclj/s

(with-intensity color desired-intensity)

Return the same 'color' with intensity of 'desired-intensity'.

Return the same 'color' with intensity of 'desired-intensity'.
sourceraw docstring

with-opacityclj/s

(with-opacity c)
(with-opacity c opacity)

Given color 'c' in either hex or rgb[a] format, set its opacity value to 'opacity' [0 1]. By default it is set to 50%.

Given color 'c' in either hex or rgb[a] format, set its opacity value to
'opacity' [0 1]. By default it is set to 50%.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close