gamma

fun Number.gamma(absMax: Number, gamma: Number): Double

Applies gamma correction to a given value within a specified range.

Return

the gamma corrected value

Parameters

absMax

the maximum absolute value allowed in the input range

gamma

the gamma value for correction