public class ColorTransform extends Transformation<ColorTransform,ITransformable.Color>
| Modifier and Type | Field and Description |
|---|---|
protected int |
fromColor
Starting color.
|
protected int |
toColor
Target color.
|
delay, duration, elapsedTimeCurrentLoop, LINEAR, loopResetDelay, loops, loopStartDelay, movement, reversed, SINUSOIDAL| Constructor and Description |
|---|
ColorTransform(int fromColor,
int toColor)
Instantiates a new
ColorTransform. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doTransform(ITransformable.Color transformable,
float comp)
Calculates the transformation.
|
ColorTransform |
from(int color)
Sets the starting color for this
ColorTransform. |
ColorTransform |
self()
Gets this
ColorTransform. |
ColorTransform |
to(int color)
Sets the target color for this
ColorTransform. |
completion, delay, forTicks, forTicks, getDelay, getDuration, getLoopDuration, getLoops, loop, loop, movement, reversed, totalDuration, transform, transformprotected int fromColor
protected int toColor
public ColorTransform(int fromColor,
int toColor)
ColorTransform.fromColor - the from colortoColor - the to colorpublic ColorTransform self()
ColorTransform.self in class Transformation<ColorTransform,ITransformable.Color>public ColorTransform from(int color)
ColorTransform.color - the colorpublic ColorTransform to(int color)
ColorTransform.color - the colorprotected void doTransform(ITransformable.Color transformable, float comp)
doTransform in class Transformation<ColorTransform,ITransformable.Color>transformable - the transformablecomp - the comp