setV

open fun setV(value: Float)(source)

Sets the Value (brightness) component of the color in the HSV model. The Hue and Saturation components remain unchanged. The alpha value also remains unchanged.

Parameters

value

The new Value, ranging from 0.0 (black) to 1.0 (full brightness). Values outside this range will be clamped.