invert

fun invert(invertR: Boolean = true, invertG: Boolean = true, invertB: Boolean = true)(source)

Inverts the specified color channels in the current color matrix.

Parameters

invertR

A boolean indicating whether to invert the red channel. Default is true.

invertG

A boolean indicating whether to invert the green channel. Default is true.

invertB

A boolean indicating whether to invert the blue channel. Default is true.