Recolor
class Recolor<S : Drawable>(drawable: S, toColor: PolyColor, animation: Animation? = null, onFinish: S.() -> Unit? = null) : ComponentOp.Animatable<S>
Changes the color of the component to the specified color. Supports animation and callback function on finish.
If the color is a PolyColor.Gradient, this component's color will be changed to a gradient between the current color and the specified color.
Since
0.19.1
Parameters
to Color
The color to change the component to.
animation
The animation to use.
on Finish
The callback function to execute when the color change animation finishes.