setColor

open fun setColor(@NonNull color: @NonNull Integer)(source)

Sets the current color.

This method updates the internal color representation, its alpha component, and its HSV (Hue, Saturation, Value) representation based on the provided color integer.

Parameters

color

The new color to set, as an ARGB integer. Must not be null. The alpha component will be extracted from this color.