Module color_filters

Enums§

Clamp

Functions§

blend
blend_with_color_space
Blends between the constant color (src) and input color (dst) based on the BlendMode. If the color space is None, the constant color is assumed to be defined in sRGB.
compose
hsla_matrix
See hsla_matrix_of_color_matrix()
hsla_matrix_of_color_matrix
lerp
lighting
Create a color filter that multiplies the RGB channels by one color, and then adds a second color, pinning the result for each component to [0..255]. The alpha components of the mul and add arguments are ignored.
linear_to_srgb_gamma
matrix
matrix_row_major
srgb_to_linear_gamma
table
Create a table color filter, copying the table into the filter, and applying it to all 4 components. a' = table[a]; r' = table[r]; g' = table[g]; b' = table[b]; Components are operated on in unpremultiplied space. If the incoming colors are premultiplied, they are temporarily unpremultiplied, then the table is applied, and then the result is re-multiplied.
table_argb
Create a table color filter, with a different table for each component [A, R, G, B]. If a given table is None, then it is treated as identity, with the component left unchanged. If a table is not None, then its contents are copied into the filter.
table_from_color_table
Create a table color filter that holds a ref to the shared color table.