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.
(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].
(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].
(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).
(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.
(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.
(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].
(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).
(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].
(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).
(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].
(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).
(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.
(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.
(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].
(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).
(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].
(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).
(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].
(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).
(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.
(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.
(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].
(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).
(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].
(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).
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close