[ CCode ( has_construct_function = false ) ]
public ComponentTransfer.levels (float n)
Creates a new component transfer that limits the values of the component to `n` levels.
The new value is computed as
C' = (floor (C * n) + 0.5) / n
<figure> <picture> <source srcset="levels-dark.png" media="(prefers-color-scheme: dark)"> <img alt="Component transfer: levels" src="levels-light.png"> </picture> </figure>
| n |
Number of levels |
|
a new `GskComponentTransfer` |