inkspot.color

adjust-color

(adjust-color style & [color])

gamma

(gamma {:keys [red green blue scale], :or {red 0.0, green 0.0, blue 0.0, scale 1.0}})
Construct a tuple of RGB elements from red/green/blue components,
expected values (double) in range 0.0-1.0

IColor

protocol

members

alpha

(alpha c)

blue

(blue c)

coerce

(coerce c)

green

(green c)

red

(red c)

int->color

(int->color n)
Construct a tuple of RGB elements from an integer.

keyword->color

(keyword->color k)
Construct a tuple of RGB elements from a keyword. Uses the lindsay
and x11 swatches for color names (case insensitive)

mix

(mix colors)(mix colors proportions)
Mix the colors in RGB space in the proportions given, else if
none given, in equal measure.

rgb

(rgb xs)
Construct a tuple of RGB (or RGBA) elements from xs, expected values
(numeric or string) in range 0-255.

rgba

(rgba color)
Convert an IColor to rgba(...) format

scale

(scale color weight)

string->color

(string->color s)
Construct a tuple of RGB elements from a string.

to-color

(to-color color)
Converts an IColor to a native color representation.
rgb values should be an integer in the 0-255 range,
whilst alpha channel is a double in the range 0.0 - 1.0