myColor.contrast( contrastFactor ) in Anark Studio 2.5

Increase/decrease contrast of the color.

Arguments

nametypedescription
contrastFactor Number Factor to modify contrast by.<
Return Type
(none)

Description

Changes the contrast of the color value. The RGB components of the color are modified by linearly interpolating the component between 50% grey and its current value using the following formula: new = 0.5 + Contrast * (current - 0.5) Where Contrast is the weighting factor of the interpolation. If Contrast is 0.0, then the color becomes 50% grey. If it is 1.0, then the new color is the same as the original. If it is greater than 1.0, then the contrast is increased.