Color¶
Shared classes for representing color and related concepts.
- class Color(r: int = 0, g: int = 0, b: int = 0, a: int = 255, color_space: ColorSpace = ColorSpace.SRGB)¶
Describes a color.
- Parameters:
r – Red, in 0-255
g – Green, in 0-255
b – Blue, in 0-255
a – Alpha, in 0-255
color_space – The color space. Only sRGB is supported currently.
- property color_space: ColorSpace¶
The color’s color space.
- class ColorSpace(value)¶
Describes the color space of a
Color.- CALIBRATED = 'Calibrated'¶
Device color space
- SRGB = 'sRGB'¶
SRGB color space
