Applies gamma correction to a given color channel value.
Applies the RGB gamma transfer function to the input color channel value.
This function is used to correct for the non-linear nature of the human eye's response to light.
Parameters
channel: number
The input color channel value, normalized in the range [0, 1].
Applies gamma correction to a given color channel value.
Applies the RGB gamma transfer function to the input color channel value. This function is used to correct for the non-linear nature of the human eye's response to light.