Trying to make sense of the AS3 Color Matrix Class.
This is completely no help: http://help.adobe.com/…/ColorMatrix.html. The default values listed for things like SetBrightnessMatrix, SetContrastMatrix, etc. are completely full of shit.
So after playing with it for a few hours, here are the ACTUAL values that these functions use:
SetBrightnessMatrix – takes a value from -255 to 255. 0 is the midpoint, ie. passing in 0 will do nothing.
SetSaturationMatrix – this appears to be a multiplier. So passing in 1 will leave the saturation alone, passing in 0.5 will decrease the saturation, and passing in 1.5 will increase the saturation.
SetContrastMatrix – takes a value from 0 to 255, with (255/2) being the midpoint.
I hope this saves you a few hours of pain.
On a side note, why do these functions start with Caps when everything else in AS3 would be defined like “setContrastMatrix”? What the fuck, Adobe?