public class ColourSpaceAnimator extends Object implements ValueAnimator<Float[]>
| Constructor and Description |
|---|
ColourSpaceAnimator(Float[] start,
Float[] end,
long duration)
Construct the animator using the start and end colours and a duration (milliseconds)
|
| Modifier and Type | Method and Description |
|---|---|
ColourSpace |
getColourspace() |
boolean |
hasFinished()
Has the animator finished animating the value.
|
Float[] |
nextValue()
Get the next value.
|
void |
reset()
Reset the animator back to its initial condition.
|
void |
setColourspace(ColourSpace colourspace) |
public ColourSpaceAnimator(Float[] start, Float[] end, long duration)
start - Start colour (RGB)end - End colour (RGB)duration - The duration (milliseconds)public Float[] nextValue()
nextValue in interface ValueAnimator<Float[]>ValueAnimator.nextValue()public boolean hasFinished()
hasFinished in interface ValueAnimator<Float[]>ValueAnimator.hasFinished()public void reset()
reset in interface ValueAnimator<Float[]>ValueAnimator.reset()public ColourSpace getColourspace()
public void setColourspace(ColourSpace colourspace)
colourspace - the colourspace to set