(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.
(intensity color)
Return the intensity for 'color'.
Return the intensity for 'color'.
(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.
(similarity c1 c2)
Perform a ciede2000 similarity score calculation between the two colors.
Perform a ciede2000 similarity score calculation between the two colors.
(with-intensity color desired-intensity)
Return the same 'color' with intensity of 'desired-intensity'.
Return the same 'color' with intensity of 'desired-intensity'.
(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%.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close