Liking cljdoc? Tell your friends :D

thi.ng.color.core


analogclj/s

(analog col theta sat bright)

Returns new color of same type with its hue rotated and adjusted saturation & brightness.

Returns new color of same type with its hue rotated and adjusted
saturation & brightness.
raw docstring

BLACKclj/s


BLUEclj/s


cie1931clj/s


closest-hueclj/s

(closest-hue col)
(closest-hue col hues)

Takes a color and map of hues (e.g. thi.ng.color.core.primary-hues), returns key of closest hue.

Takes a color and map of hues (e.g. thi.ng.color.core.primary-hues),
returns key of closest hue.
raw docstring

cmykaclj/s

(cmyka [c m y k a])
(cmyka c m y k)
(cmyka c m y k a)

CMYKAcljs


complementaryclj/s

(complementary col)

Returns new color of same type with its hue rotated by 180 degrees.

Returns new color of same type with its hue rotated by 180 degrees.
raw docstring

cssclj/s

(css col)

CSScljs


CYANclj/s


dist-hsvclj/s

(dist-hsv a b)

Returns HSV distance of any two colors (in cartesian space).

Returns HSV distance of any two colors (in cartesian space).
raw docstring

dist-rgbclj/s

(dist-rgb a b)

Returns RGB distance of any two colors

Returns RGB distance of any two colors
raw docstring

gamma-correctclj/s

(gamma-correct col gamma)

Returns gamma corrected version of color as RGBA

Returns gamma corrected version of color as RGBA
raw docstring

GRAYclj/s


GREENclj/s


hcyaclj/s


hex->intclj/s

(hex->int hex)

HSLAcljs


hslaclj/s

(hsla [h s l a])
(hsla h s l)
(hsla h s l a)

hsvaclj/s

(hsva [h s v a])
(hsva h s v)
(hsva h s v a)

HSVAcljs


huesclj/s


ICMYKConvertclj/s≠protocol

as-cmykaclj/s

(as-cmyka _)

IColorComponentsclj/s≠protocol

magentaclj/s

(magenta _)

blackclj/s

(black _)

hueclj/s

(hue _)

yellowclj/s

(yellow _)

saturationclj/s

(saturation _)

greenclj/s

(green _)

cyanclj/s

(cyan _)

brightnessclj/s

(brightness _)

luminanceclj/s

(luminance _)

redclj/s

(red _)

blueclj/s

(blue _)

alphaclj/s

(alpha _)

IColorOpsclj/s≠protocol

adjust-alphaclj/s

(adjust-alpha _ offset)

adjust-brightnessclj/s

(adjust-brightness _ offset)

adjust-saturationclj/s

(adjust-saturation _ offset)

rotate-hueclj/s

(rotate-hue _ theta)

ICSSConvertclj/s≠protocol

as-cssclj/s

(as-css _)

IHSLConvertclj/s≠protocol

as-hslaclj/s

(as-hsla _)

IHSVConvertclj/s≠protocol

as-hsvaclj/s

(as-hsva _)

IIntConvertclj/s≠protocol

as-int32clj/s

(as-int32 _)

as-int24clj/s

(as-int24 _)

Int24cljs


int24clj/s

(int24 col)

int32clj/s

(int32 col)
(int32 col alpha)

Int32cljs


IRGBConvertclj/s≠protocol

as-rgbaclj/s

(as-rgba _)

MAGENTAclj/s


primary-huesclj/s


proxied-color-typeclj/s

(proxied-color-type to-rgba from-rgba)

random-analogclj/s

(random-analog col delta)
(random-analog col theta sat bright)

Returns new color of same type with its hue rotated and adjusted saturation & brightness within given tolerances (+/-).

Returns new color of same type with its hue rotated and adjusted
saturation & brightness within given tolerances (+/-).
raw docstring

random-rgbclj/s

(random-rgb)

Returns a random RGBA color with 100% alpha

Returns a random RGBA color with 100% alpha
raw docstring

REDclj/s


rgbaclj/s

(rgba [r g b a])
(rgba r g b)
(rgba r g b a)

RGBAcljs


WHITEclj/s


ycbcraclj/s


YELLOWclj/s


yuvaclj/s

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

× close