setAlpha

open fun setAlpha(alpha: Int)(source)

Sets the alpha (transparency) value of the picked color.

This method updates the internal alpha value and recalculates the mColor based on the current HSV values and the new alpha.

Parameters

alpha

The new alpha value, typically ranging from 0 (fully transparent) to 255 (fully opaque).