ComponentTransfer.gamma


Description:

[ CCode ( has_construct_function = false ) ]
public ComponentTransfer.gamma (float amp, float exp, float ofs)

Creates a new component transfer that applies a gamma transform.

The new value is computed as

C' = amp * pow (C, exp) + ofs

<figure> <picture> <source srcset="gamma-dark.png" media="(prefers-color-scheme: dark)"> <img alt="Component transfer: gamma" src="gamma-light.png"> </picture> </figure>

Parameters:

amp

Amplitude

exp

Exponent

ofs

Offset

Returns:

a new `GskComponentTransfer`