addConstant

fun addConstant(color: ColorRGBa, ignoreAlpha: Boolean = true)(source)

Adds a constant color transformation to the current color matrix.

Parameters

color

The color to be added, represented as an instance of ColorRGBa with red, green, blue, and alpha components.

ignoreAlpha

A boolean flag indicating whether to ignore the alpha component of the color. If true, the alpha value in the matrix will be set to 0.0. Defaults to true.