Liking cljdoc? Tell your friends :D

artlib.color.model

This namespace contains various functions for transforming color information across different representations, i.e. the way colors can be represented as tuples of numbers.

Note: by default, a "color" is a 3-vec, 4-vec, or 5-vec of numbers (with the last entry typically being the Alpha channel) whereas the term "Color" refers to the java.awt.Color class.

This namespace contains various functions for transforming
  color information across different representations, i.e. the
  way colors can be represented as tuples of numbers.

Note: by default, a "color" is a 3-vec, 4-vec, or 5-vec of numbers
  (with the last entry typically being the Alpha channel) whereas
  the term "Color" refers to the java.awt.Color class.
raw docstring

cmyk->Colorclj

(cmyk->Color cmyk)

Convert a CMYK color to java.awt.Color. Range for CMYK values is [0, 100].

Convert a CMYK color to java.awt.Color. 
Range for CMYK values is [0, 100].
sourceraw docstring

cmyk->hsbclj

(cmyk->hsb cmyk)

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

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

cmyk->hsbaclj

(cmyk->hsba cmyk)

Convert a CMYK color to HSBA values. Range for CMYK values is [0, 100]. Range for H is [0, 360). Range for S, B is [0, 100]. Range for A is [0.0, 1.0).

Convert a CMYK color to HSBA values.
Range for CMYK values is [0, 100].
Range for H is [0, 360).
Range for S, B is [0, 100].
Range for A is [0.0, 1.0).
sourceraw docstring

cmyk->rgbclj

(cmyk->rgb cmyk)

Convert a CMYK color to RGB values. Range for CMYK values is [0, 100]. Range for RGB is [0, 256). Alias of cmyk->rgbi.

Convert a CMYK color to RGB values. 
Range for CMYK values is [0, 100].
Range for RGB is [0, 256).
Alias of cmyk->rgbi.
sourceraw docstring

cmyk->rgbaclj

(cmyk->rgba cmyk)

Convert a CMYK color to RGBA values. Range for CMYK values is [0, 100]. Range for RGBA is [0, 256). Alias of cmyk->rgbai.

Convert a CMYK color to RGBA values. 
Range for CMYK values is [0, 100].
Range for RGBA is [0, 256).
Alias of cmyk->rgbai.
sourceraw docstring

cmyk->rgbafclj

(cmyk->rgbaf cmyk)

Convert a CMYK color to RGBA values. Range for CMYK values is [0, 100]. Range for RGBA is [0.0, 1.0].

Convert a CMYK color to RGBA values. 
Range for CMYK values is [0, 100].
Range for RGBA is [0.0, 1.0].
sourceraw docstring

cmyk->rgbaiclj

(cmyk->rgbai cmyk)

Convert a CMYK color to RGBA values. Range for CMYK values is [0, 100]. Range for RGBA is [0, 256).

Convert a CMYK color to RGBA values. 
Range for CMYK values is [0, 100].
Range for RGBA is [0, 256).
sourceraw docstring

cmyk->rgbfclj

(cmyk->rgbf cmyk)

Convert a CMYK color to RGB values. Range for CMYK values is [0, 100]. Range for RGB is [0.0, 1.0].

Convert a CMYK color to RGB values. 
Range for CMYK values is [0, 100].
Range for RGB is [0.0, 1.0].
sourceraw docstring

cmyk->rgbiclj

(cmyk->rgbi cmyk)

Convert a CMYK color to RGB values. Range for CMYK values is [0, 100]. Range for RGB is [0, 256).

Convert a CMYK color to RGB values. 
Range for CMYK values is [0, 100].
Range for RGB is [0, 256).
sourceraw docstring

Color->hsbclj

(Color->hsb color)

Convert java.awt.Color to HSB. Range for H is [0, 360) and for S, B is [0, 100].

Convert java.awt.Color to HSB.
Range for H is [0, 360) and for S, B is [0, 100].
sourceraw docstring

Color->hsbaclj

(Color->hsba color)

Convert java.awt.Color to HSBA. Range for H is [0, 360). Range for S, B is [0, 100]. Range for A is [0.0, 1.0).

Convert java.awt.Color to HSBA.
Range for H is [0, 360).
Range for S, B is [0, 100].
Range for A is [0.0, 1.0).
sourceraw docstring

Color->rgbclj

(Color->rgb color)

Convert java.awt.Color to RGB. Range of RGB is [0, 256). Alias of Color->rgbi.

Convert java.awt.Color to RGB.
Range of RGB is [0, 256).
Alias of Color->rgbi.
sourceraw docstring

Color->rgbaclj

(Color->rgba color)

Convert java.awt.Color to RGBA. Range of RGBA is [0, 256). Alias of Color->rgbai.

Convert java.awt.Color to RGBA.
Range of RGBA is [0, 256).
Alias of Color->rgbai.
sourceraw docstring

Color->rgbafclj

(Color->rgbaf color)

Convert java.awt.Color to RGBA. Range of RGBA is [0.0, 1.0].

Convert java.awt.Color to RGBA.
Range of RGBA is [0.0, 1.0].
sourceraw docstring

Color->rgbaiclj

(Color->rgbai color)

Convert java.awt.Color to RGBA. Range of RGBA is [0, 256).

Convert java.awt.Color to RGBA.
Range of RGBA is [0, 256).
sourceraw docstring

Color->rgbfclj

(Color->rgbf color)

Convert java.awt.Color to RGB. Range of RGB is [0.0, 1.0].

Convert java.awt.Color to RGB.
Range of RGB is [0.0, 1.0].
sourceraw docstring

Color->rgbiclj

(Color->rgbi color)

Convert java.awt.Color to RGB. Range of RGB is [0, 256).

Convert java.awt.Color to RGB.
Range of RGB is [0, 256).
sourceraw docstring

hsb->Colorclj

(hsb->Color hsb)

Convert an HSB color to java.awt.Color. Range for H is [0, 360). Overflow will be taken modulo 360. Range for S, B is [0, 100].

Convert an HSB color to java.awt.Color.
Range for H is [0, 360). Overflow will be taken modulo 360.
Range for S, B is [0, 100].
sourceraw docstring

hsba->Colorclj

(hsba->Color hsba)

Convert an HSBA color to java.awt.Color. Range for H is [0, 360). Overflow will be taken modulo 360. Range for S, B is [0, 100]. Range for A is [0.0, 1.0).

Convert an HSBA color to java.awt.Color.
Range for H is [0, 360). Overflow will be taken modulo 360.
Range for S, B is [0, 100].
Range for A is [0.0, 1.0).
sourceraw docstring

rgb->Colorclj

(rgb->Color rgb)

Convert a RGB color to java.awt.Color. Range for RGB values is [0, 256). Alias for rgbi->Color.

Convert a RGB color to java.awt.Color.
Range for RGB values is [0, 256).
Alias for rgbi->Color.
sourceraw docstring

rgba->Colorclj

(rgba->Color rgba)

Convert a RGBA color to java.awt.Color. Range for RGBA values is [0, 256). Alias for rgbai->Color.

Convert a RGBA color to java.awt.Color.
Range for RGBA values is [0, 256).
Alias for rgbai->Color.
sourceraw docstring

rgbaf->Colorclj

(rgbaf->Color rgba)

Convert a RGBA color to java.awt.Color. Range for RGBA values is [0.0, 1.0].

Convert a RGBA color to java.awt.Color.
Range for RGBA values is [0.0, 1.0].
sourceraw docstring

rgbai->Colorclj

(rgbai->Color rgba)

Convert a RGBA color to java.awt.Color. Range for RGBA values is [0, 256).

Convert a RGBA color to java.awt.Color.
Range for RGBA values is [0, 256).
sourceraw docstring

rgbf->Colorclj

(rgbf->Color rgb)

Convert a RGB color to java.awt.Color. Range for RGB values is [0.0, 1.0].

Convert a RGB color to java.awt.Color.
Range for RGB values is [0.0, 1.0].
sourceraw docstring

rgbi->Colorclj

(rgbi->Color rgb)

Convert a RGB color to java.awt.Color. Range for RGB values is [0, 256).

Convert a RGB color to java.awt.Color.
Range for RGB values is [0, 256).
sourceraw docstring

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

× close