Modifier and Type | Field and Description |
---|---|
protected float |
step
The step value.
|
Constructor and Description |
---|
FadeConstantStep(float step)
Creates a default constant implementation.
|
Modifier and Type | Method and Description |
---|---|
float |
getNextStep(FadeKind fadeKind,
float currFadePosition,
boolean isFadeIn,
boolean isLooping)
Returns the next fade cycle step.
|
public FadeConstantStep(float step)
step
- The step value.public float getNextStep(FadeKind fadeKind, float currFadePosition, boolean isFadeIn, boolean isLooping)
FadeStep
getNextStep
in interface FadeStep
fadeKind
- Fade kind.currFadePosition
- Current fade position - guaranteed to be in 0.0-1.0 range.isFadeIn
- If true
, the current fade cycle is fading in.isLooping
- If true
, the fade is looping.