Package org.polyfrost.polyui.color
Class PolyColor.Animated
-
- All Implemented Interfaces:
-
org.polyfrost.polyui.color.PolyColor.Animatable,org.polyfrost.polyui.color.PolyColor.Dynamic,org.polyfrost.polyui.color.PolyColor.Mut
public class PolyColor.Animated extends PolyColor.Mutable implements PolyColor.Dynamic, PolyColor.Animatable
-
-
Field Summary
Fields Modifier and Type Field Description private Floathueprivate Floatsaturationprivate Floatbrightnessprivate Floatalphaprivate final transient Integerargbprivate final Integerrgbaprivate final Booleantransparentprivate final Integerrprivate final Integergprivate final Integerbprivate final Integera
-
Constructor Summary
Constructors Constructor Description PolyColor.Animated(Float hue, Float saturation, Float brightness, Float alpha)
-
Method Summary
Modifier and Type Method Description PolyColor.Animatedrecolor(PolyColor to, Animation animation)recolor this color to the target color, with the given animation type and duration. PolyColor.Animatedrecolor(PolyColor to)Booleanupdate(Long deltaTimeNanos)-
Methods inherited from class org.polyfrost.polyui.color.PolyColor.Mutable
getAlpha, getArgb, getBrightness, getHue, getSaturation, setAlpha, setBrightness, setHue, setSaturation -
Methods inherited from class org.polyfrost.polyui.color.PolyColor
alpha, blue, equals, getRgba, getTransparent, green, hashCode, red, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
recolor
PolyColor.Animated recolor(PolyColor to, Animation animation)
recolor this color to the target color, with the given animation type and duration.
make sure to check if the color is a gradient, as this method may not have the expected result!
- Parameters:
animation- animation to use.
-
recolor
PolyColor.Animated recolor(PolyColor to)
-
-
-
-