
Read-only one dimensional unsigned byte array of the same assigned lengthĪs the color. Where the default alpha was 0, not 255 like previously.Ĭolor objects export the C level array interface. The arithmetic operations and correct_gamma() method preserve subclasses.įor the binary operators, the class of the returned color is that of theĬolor objects support equality comparison with other color objects and 3 orĤ element tuples of integers. Or HSL and lets you adjust single color channels.Īlpha defaults to 255 (fully opaque) when not given. Operations +, -, *, //, %, and unary operation ~ - toĬreate new colors, supports conversions to other color spaces such as HSV It allows basic arithmetic operations - binary


The Color class represents RGBA color values using a value range ofĠ to 255 inclusive.
