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.
sourceraw docstring

BLACKclj/s

source

BLUEclj/s

source

cie1931clj/s

source

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.
sourceraw docstring

cmykaclj/s

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

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.
sourceraw docstring

cssclj/s

(css col)
source

CYANclj/s

source

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).
sourceraw docstring

dist-rgbclj/s

(dist-rgb a b)

Returns RGB distance of any two colors

Returns RGB distance of any two colors
sourceraw docstring

gamma-correctclj/s

(gamma-correct col gamma)

Returns gamma corrected version of color as RGBA

Returns gamma corrected version of color as RGBA
sourceraw docstring

GRAYclj/s

source

GREENclj/s

source

hcyaclj/s

source

hex->intclj/s

(hex->int hex)
source

hslaclj/s

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

hsvaclj/s

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

huesclj/s

source

ICMYKConvertclj/sprotocol

as-cmykaclj/s

(as-cmyka _)
source

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 _)
source

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.
source

ICSSConvertclj/sprotocol

as-cssclj/s

(as-css _)
source

IHSLConvertclj/sprotocol

as-hslaclj/s

(as-hsla _)
source

IHSVConvertclj/sprotocol

as-hsvaclj/s

(as-hsva _)
source

IIntConvertclj/sprotocol

as-int24clj/s

(as-int24 _)

as-int32clj/s

(as-int32 _)
source

int24clj/s

(int24 col)
source

int32clj/s

(int32 col)
(int32 col alpha)
source

IRGBConvertclj/sprotocol

as-rgbaclj/s

(as-rgba _)
source

MAGENTAclj/s

source

primary-huesclj/s

source

proxied-color-typeclj/s

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

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 (+/-).
sourceraw docstring

random-rgbclj/s

(random-rgb)

Returns a random RGBA color with 100% alpha

Returns a random RGBA color with 100% alpha
sourceraw docstring

REDclj/s

source

rgbaclj/s

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

WHITEclj/s

source

ycbcraclj/s

source

YELLOWclj/s

source

yuvaclj/s

source

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

× close