Warning: overloaded operators preserve types and may cause overflows
Warning: overloaded operators preserve types and may cause overflows
Warning: overloaded operators preserve types and may cause overflows
Sum of all channels
The number of fields in this color type.
Whether or not all channel fields have the same base type.
Alpha-blend two colors.
Construct an RGB color from a typical hex string.
Interpolate between two colors.
Return a Color instance with all fields set to "value".
Apply a custom operation for each channel. Example: COLOR.op!q{(a + b) / 2}(colorA, colorB);
Instantiates to a color type. FieldTuple is the color specifier, as parsed by the FieldList template from ae.utils.meta. By convention, each field's name indicates its purpose: - x: padding - a: alpha - l: lightness (or grey, for monochrome images) - others (r, g, b, etc.): color information