Package org.polyfrost.polyui.operations
Class Recolor
-
- All Implemented Interfaces:
-
org.polyfrost.polyui.operations.ComponentOp
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()Apply the operation, this is called before the component is rendered. Booleanunapply()Unapply the operation. -
Methods inherited from class org.polyfrost.polyui.operations.ComponentOp.Animatable
add, finishNow, getOnFinish, reset, reverse, setOnFinish -
Methods inherited from class org.polyfrost.polyui.operations.ComponentOp
exclusive -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-