crumpets.core documentation
->rgb
(->rgb x)
Turn a data structure into an RGB color.
->rgba
(->rgba x)
Turn a data structure into an RGB color with an alpha channel.
awt-color
(awt-color color)
Create a java.awt.Color object from the color.
hex
(hex color)
Return the hex string of the color.
int-argb
(int-argb color)
Pack a color into a 32 bit ARGB int.
rgb
(rgb r g b)
Create an RGB color from red, green and blue values. The values should be
integers between 0 and 255.
rgba
(rgba r g b a)
Create an RGB color with red, green and blue values, plus an alpha channel.
The values should be integers between 0 and 255.