toLinearity
Converts this color to the specified linearity.
Return
A ColorRGBa instance in the specified linearity.
Parameters
linearity
The target linearity to which the color should be converted. Supported values are Linearity.SRGB and Linearity.LINEAR.