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)

CMYKAclj/s


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)

CSSclj/s


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)

HSLAclj/s


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)

HSVAclj/s


huesclj/s


ICMYKConvertclj/sprotocol

as-cmykaclj/s

(as-cmyka _)

IColorComponentsclj/sprotocol

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/sprotocol

adjust-alphaclj/s

(adjust-alpha _ offset)

Adjust alpha up or down, clamping result to 0.0-1.0

Adjust alpha up or down, clamping result to 0.0-1.0

adjust-brightnessclj/s

(adjust-brightness _ offset)

Adjust brightness (per HSV norms) up or down, clamping result to 0.0-1.0

Adjust brightness (per HSV norms) up or down, clamping result to 0.0-1.0

adjust-luminanceclj/s

(adjust-luminance _ offset)

Adjust lightness (per HSL) up or down, clamping result to 0.0-1.0

Adjust lightness (per HSL) up or down, clamping result to 0.0-1.0

adjust-saturationclj/s

(adjust-saturation _ offset)

Adjust saturation up or down, clamping result to 0.0-1.0

Adjust saturation up or down, clamping result to 0.0-1.0

rotate-hueclj/s

(rotate-hue _ theta)

Rotate hue by radians.

Rotate hue by radians.

ICSSConvertclj/sprotocol

as-cssclj/s

(as-css _)

IHSLConvertclj/sprotocol

as-hslaclj/s

(as-hsla _)

IHSVConvertclj/sprotocol

as-hsvaclj/s

(as-hsva _)

IIntConvertclj/sprotocol

as-int24clj/s

(as-int24 _)

as-int32clj/s

(as-int32 _)

Int24clj/s


int24clj/s

(int24 col)

int32clj/s

(int32 col)
(int32 col alpha)

Int32clj/s


IRGBConvertclj/sprotocol

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)

RGBAclj/s


WHITEclj/s


ycbcraclj/s


YELLOWclj/s


yuvaclj/s

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

× close