goulib.colors
color conversion in various colorspaces and palettes
Functions
ColorTable(colors[, key, width])
|
|
RGB2lambda(R, G, B)
|
Returns 0 if indeciferable |
_skadapt(f, **kwargs)
|
|
aci_to_color(x[, block_color, layer_color])
|
|
blackBody2Color(tempK)
|
|
cmyk2rgb(cmyk, **kwargs)
|
|
color_range(n, start, end[, space])
|
|
color_to_aci(x[, nearest])
|
|
convert(color, source, target)
|
convert a color between colorspaces, eventually using intermediary steps |
converter(c[, illuminant])
|
|
deltaE(c1, c2)
|
|
hex2rgb(c[, illuminant])
|
|
lambda2RGB(w)
|
|
nearest_color(c[, l, opt, comp])
|
|
rgb2cmyk(rgb, **kwargs)
|
|
rgb2hex(c[, illuminant])
|
|
xyy2xyz(xyY, **kwargs)
|
Convert from xyY to XYZ to |
xyz2xyy(xyz, **kwargs)
|
Convert from XYZ to xyY |
Classes
Color(value[, space, name, illuminant])
|
A color with math operations and conversions Color is immutable (._values caches representations) |
Palette([data, keys])
|
dict of Colors indexed by anything |