Package org.vanted.animation.animations
Class ColorAnimation
java.lang.Object
org.vanted.animation.Animation<T>
org.vanted.animation.ContinuousAnimation<ColorTimePoint>
org.vanted.animation.animations.ColorAnimation
- Direct Known Subclasses:
FillColorAnimation
,LabelColorAnimation
,OutlineColorAnimation
public abstract class ColorAnimation extends ContinuousAnimation<ColorTimePoint>
Animates the color of an Attributable object.
- Author:
- - Patrick Shaw
-
Constructor Summary
Constructors Constructor Description ColorAnimation(Attributable attributable, List<ColorTimePoint> dataPoints, double loopDuration)
Uses RGB interpolationColorAnimation(Attributable attributable, List<ColorTimePoint> dataPoints, double loopDuration, double startTime)
Uses RGB interpolationColorAnimation(Attributable attributable, List<ColorTimePoint> dataPoints, double loopDuration, double startTime, int noLoops)
Uses RGB interpolationColorAnimation(Attributable attributable, List<ColorTimePoint> dataPoints, double loopDuration, double startTime, int noLoops, Looper looper)
Uses RGB interpolationColorAnimation(Attributable attributable, List<ColorTimePoint> dataPoints, double loopDuration, double startTime, int noLoops, Looper looper, Interpolator interpolator)
Uses RGB interpolationColorAnimation(Attributable attributable, List<ColorTimePoint> dataPoints, double loopDuration, double startTime, int noLoops, Looper looper, Interpolator interpolator, ColorMode colorMode)
-
Method Summary
Methods inherited from class org.vanted.animation.ContinuousAnimation
update
Methods inherited from class org.vanted.animation.Animation
getEndTime, getLoopDuration, getStartTime, isFinished, reset, setDataPoints, setLoopDuration, setLoopDuration, setLoopDuration, setLooper, setNoLoops, setNoLoops, setStartTime, setStartTime
-
Constructor Details
-
ColorAnimation
public ColorAnimation(Attributable attributable, List<ColorTimePoint> dataPoints, double loopDuration, double startTime, int noLoops, Looper looper, Interpolator interpolator, ColorMode colorMode)- Parameters:
colorMode
- Specifies which colour-interpolation mode the interpolator should use
RGB: Maintains brightness but not saturation during interpolation
HSB: Maintains saturation but not perceived-brightness during interpolation
TODO CIE-Lch: Maintains both perceived-brightness and saturation. Performance heavy.
-
ColorAnimation
public ColorAnimation(Attributable attributable, List<ColorTimePoint> dataPoints, double loopDuration, double startTime, int noLoops, Looper looper, Interpolator interpolator)Uses RGB interpolation -
ColorAnimation
public ColorAnimation(Attributable attributable, List<ColorTimePoint> dataPoints, double loopDuration, double startTime, int noLoops, Looper looper)Uses RGB interpolation -
ColorAnimation
public ColorAnimation(Attributable attributable, List<ColorTimePoint> dataPoints, double loopDuration, double startTime, int noLoops)Uses RGB interpolation -
ColorAnimation
public ColorAnimation(Attributable attributable, List<ColorTimePoint> dataPoints, double loopDuration, double startTime)Uses RGB interpolation -
ColorAnimation
public ColorAnimation(Attributable attributable, List<ColorTimePoint> dataPoints, double loopDuration)Uses RGB interpolation
-