The ColorMatrix class calculates and stores color matrixes based on given values. This class extends the DynamicMatrix class and also supports the ColorMatrixFilter class.
See also:
flxanimate.motion.DynamicMatrix
Constructor
Methods
getFlatArray():Null<Array<Float>>
Calculates and returns a flat array of 20 numerical values representing the four matrixes set in this object.
Returns:
An array of 20 items.
setBrightnessMatrix(value:Float):Void
Calculates and stores a brightness matrix based on the given value.
Parameters:
value | 0-255 |
|---|
setContrastMatrix(value:Float):Void
Calculates and stores a contrast matrix based on the given value.
Parameters:
value | 0 - 255 |
|---|
setHueMatrix(angle:Float):Void
Calculates and stores a hue matrix based on the given value.
Parameters:
value | 0-255 |
|---|
setSaturationMatrix(value:Float):Void
Calculates and stores a saturation matrix based on the given value.
Parameters:
value | 0-255 |
|---|