class AdjustColor
package flxanimate.motion
The AdjustColor class defines various color properties, such as brightness, contrast, hue, and saturation, to support the ColorMatrixFilter class. You can apply the AdjustColor filter to any display object, and also generate a flat array representing all four color properties to use with the ColorMatrixFilter class.
See also:
Constructor
new()
The AdjustColor class defines various color properties to support the ColorMatrixFilter.
See also:
Variables
write onlybrightness:Float
Sets the brightness of the AdjustColor filter. The range of valid values is -100 to 100.
write onlycontrast:Float
Sets the contrast of the AdjustColor filter. The range of valid values is -100 to 100.
write onlyhue:Float
Sets the hue of the AdjustColor filter. The range of valid values is -180 to 180.
write onlysaturation:Float
Sets the saturation of the AdjustColor filter. The range of valid values is -100 to 100.
Methods
calculateFinalFlatArray():Null<Array<Float>>
Returns the flat array of values for all four properties.
Returns:
An array of 20 numerical values representing all four AdjustColor properties
to use with the openfl.filters.ColorMatrixFilter class.
See also: