This page may include unlocalized contents


Color Gain

Returns a contrast gain of the input color by Gain, using the following Ken Perlin formula:

Bias( 2 * Input, 1 - Gain ) * 0.5 ; if Input < 0.5

1 - Bias( 2 - 2 * Input, 1 - Gain ) * 0.5 ; otherwise