Package org.polyfrost.polyui.operations
Class Recolor
-
- All Implemented Interfaces:
public final class Recolor<S extends Drawable> extends DrawableOp
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.
If the color is a PolyColor.Chroma, this component's color will be changed to a chroma color, keeping its current hue for consistency. Note: This will look wierd if the current color is a gradient, and the brightness, saturation and alpha are NOT animated, so will change instantly.
- Since:
0.19.1