beatmup.filters.ColorMatrix¶
- class beatmup.filters.ColorMatrix¶
Color matrix filter: applies an affine mapping Ax + B at each pixel of a given image in RGBA space
- __init__(self: beatmup.filters.ColorMatrix) None ¶
Methods
__init__
(self)apply_contrast
(self, factor)Applies a contrast adjustment by a given factor on top of the current transformation
set_brightness
(self, brightness)Sets a brightness adjustment by a given factor (non-cumulative with respect to the current transformation)
set_coefficients
(self, out_channel, add, rgba)Sets color matrix coefficients for a specific output color channel
set_color_inversion
(self, preserved_hue, ...)Resets the current transformation to a fancy color inversion mode with a fixed hue point
set_hsv_correction
(self, hue_shift_degrees, ...)Resets the current transformation to a matrix performing standard HSV correction
Attributes
input
Input bitmap
output
Output bitmap