Liking cljdoc? Tell your friends :D

artlib.color.dictionary

This namespace contiains utilities for interfacing with definitions from the book "A Dictionary of Colour Combinations" compiled by Sanzo Wada.

This namespace contiains utilities for interfacing with 
definitions from the book "A Dictionary of Colour Combinations" 
compiled by Sanzo Wada.
raw docstring

cmyk->rgbclj

(cmyk->rgb c m y k)
(cmyk->rgb cmyk-scale rgb-scale c m y k)

Convert a CMYK color to RGB values. Defaults range for CMYK is [0, 100] and default range for RGB is [0, 256).

Convert a CMYK color to RGB values. 
Defaults range for CMYK is [0, 100] and default range for RGB is [0, 256).
sourceraw docstring

color->Colorclj

(color->Color color)

Convert a color to an instance of java.awt.Color.

Convert a color to an instance of java.awt.Color.
sourceraw docstring

color->hsbclj

(color->hsb color)

Convert a color to HSB values. Range for H is [0, 360) and for S, B is [0, 100).

Convert a color to HSB values.
Range for H is [0, 360) and for S, B is [0, 100).
sourceraw docstring

color->rgbclj

(color->rgb {c :c m :m y :y k :k})

Converts a color to RGB values. Range for RGB is [0, 256).

Converts a color to RGB values. Range for RGB is [0, 256).
sourceraw docstring

get-colorclj

(get-color color-dictionary color-name)
source

get-color-hsbclj

(get-color-hsb color-dictionary color-name)

Retrieve the HSB values of a color by name.

Retrieve the HSB values of a color by name.
sourceraw docstring

get-color-javaclj

(get-color-java color-dictionary color-name)

Retrieve Color by name.

Retrieve Color by name.
sourceraw docstring

get-color-rgbclj

(get-color-rgb color-dictionary color-name)

Retrieve the RGB values of a color by name.

Retrieve the RGB values of a color by name.
sourceraw docstring

get-combinationclj

(get-combination color-dictionary combination)

Retrieve the color combination. Combinations are from :1 to :348.

Retrieve the color combination. Combinations are from :1 to :348.
sourceraw docstring

get-combination-hsbclj

(get-combination-hsb color-dictionary combination)

Retrieve the color combination. Combinations are from :1 to :348.

Retrieve the color combination. Combinations are from :1 to :348.
sourceraw docstring

get-combination-javaclj

(get-combination-java color-dictionary combination)

Retrieve the color combination. Combinations are from :1 to :348.

Retrieve the color combination. Combinations are from :1 to :348.
sourceraw docstring

get-combination-rgbclj

(get-combination-rgb color-dictionary combination)

Retrieve the color combination. Combinations are from :1 to :348.

Retrieve the color combination. Combinations are from :1 to :348.
sourceraw docstring

initclj

(init)
(init resource-path)

Load the color dictionary into memory.

Load the color dictionary into memory.
sourceraw docstring

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

× close