Package org.polyfrost.polyui.operations
Class Recolor
-
- All Implemented Interfaces:
public final class Recolor<S extends Drawable> extends 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
-
-
Method Summary
Modifier and Type Method Description Booleanverify()override this function to verify that this operation is valid, which is run before it is applied. Unitapply()Booleanunapply()-
Methods inherited from class org.polyfrost.polyui.operations.ComponentOp.Animatable
finishNow, getOnFinish, reset, reverse, setOnFinish -
Methods inherited from class org.polyfrost.polyui.operations.ComponentOp
add, exclusive, remove -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-