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