public abstract class ColorCycle
extends java.lang.Object
implements java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
protected boolean |
isActive
Whether the color cycle is active.
|
protected boolean |
isBlended
Whether colors are blended into each other when shifted.
|
protected int |
rate
Cycle rate.
|
protected int |
timeScale
Time scale of the cycle rate.
|
Constructor and Description |
---|
ColorCycle(int rate,
int timeScale,
boolean isActive) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
clone() |
abstract void |
doCycle(int[] rgbs,
long time) |
int |
getRate() |
int |
getTimeScale() |
boolean |
isActive() |
boolean |
isBlended()
Returns true if colors are blended when shifted.
|
void |
setBlended(boolean newValue)
Set to true to blend colors when they are shifted.
|
protected int rate
protected int timeScale
protected boolean isActive
protected boolean isBlended
public boolean isActive()
public int getRate()
public int getTimeScale()
public boolean isBlended()
public void setBlended(boolean newValue)
public abstract void doCycle(int[] rgbs, long time)
protected java.lang.Object clone()
clone
in class java.lang.Object