color

@set:ApiStatus.Internal
var color: PolyColor

The color of this drawable. can be any of the subtypes of this class depending on the current situation.

The only safe methods here generally are getting the current color. casting it is tricky as PolyUI supports many different 'types' of color, from gradients to chroma. For this reason, if you want to set it, use the Recolor operation on this drawable as it handles the conversions for you.

setting this value is marked as experimental as it is not generally advised.