alter

open fun alter(c: Color, q: Float): Color(source)

Given a color, modifies the channel setting the passed value.

Return

the modified color

Parameters

c

the initial color

q

the value for the channel