java.lang.Object
org.monte.media.ilbm.ColorCycle
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
CRNGColorCycle,DRNGColorCycle
Base class for color cycling in an IFF ILBM image.
- Author:
- Werner Randelshofer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
rate
protected int rateCycle rate. -
timeScale
protected int timeScaleTime scale of the cycle rate. Dividing the rate by the time scale yields the rate per second. -
isActive
protected boolean isActiveWhether the color cycle is active. -
isBlended
protected boolean isBlendedWhether colors are blended into each other when shifted.
-
-
Constructor Details
-
ColorCycle
public ColorCycle(int rate, int timeScale, boolean isActive)
-
-
Method Details
-
isActive
public boolean isActive() -
getRate
public int getRate() -
getTimeScale
public int getTimeScale() -
isBlended
public boolean isBlended()Returns true if colors are blended when shifted. -
setBlended
public void setBlended(boolean newValue) Set to true to blend colors when they are shifted. -
doCycle
public abstract void doCycle(int[] rgbs, long time) -
clone
-