java.lang.Object
org.monte.media.ilbm.ColorCycle
org.monte.media.ilbm.DRNGColorCycle
- All Implemented Interfaces:
Cloneable
Implements DRNG color cycling for an IFF ILBM image.
ILBM DRNG DPaint IV enhanced color cycle chunk
--------------------------------------------
set {
active=1,DPReserved=4
} drngFlags;
/* True color cell * /
typedef struct {
UBYTE cell;
UBYTE r;
UBYTE g;
UBYTE b;
} ilbmDRNGDColor;
/* Color register cell * /
typedef struct {
UBYTE cell;
UBYTE index;
} ilbmDRNGDIndex;
/* DRNG chunk. * /
typedef struct {
UBYTE min; /* min cell value * /
UBYTE max; /* max cell value * /
UWORD rate; /* color cycling rate, 16384 = 60 steps/second * /
UWORD set drngFlags flags; /* 1=RNG_ACTIVE, 4=RNG_DP_RESERVED * /
UBYTE ntrue; /* number of DColorCell structs to follow * /
UBYTE ntregs; /* number of DIndexCell structs to follow * /
ilbmDRNGDColor[ntrue] trueColorCells;
ilbmDRNGDIndex[ntregs] colorRegisterCells;
} ilbmDRangeChunk;
- Author:
- Werner Randelshofer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classTrue color cell.static classColor register cell. -
Field Summary
Fields inherited from class org.monte.media.ilbm.ColorCycle
isActive, isBlended, rate, timeScale -
Constructor Summary
ConstructorsConstructorDescriptionDRNGColorCycle(int rate, int timeScale, int min, int max, boolean isActive, boolean isEHB, DRNGColorCycle.Cell[] cells) -
Method Summary
Methods inherited from class org.monte.media.ilbm.ColorCycle
clone, getRate, getTimeScale, isActive, isBlended, setBlended
-
Constructor Details
-
DRNGColorCycle
public DRNGColorCycle(int rate, int timeScale, int min, int max, boolean isActive, boolean isEHB, DRNGColorCycle.Cell[] cells) - Parameters:
rate-timeScale-min-max-isActive-isEHB-cells-
-
-
Method Details
-
getMin
public int getMin() -
getMax
public int getMax() -
doCycle
public void doCycle(int[] rgbs, long time) - Specified by:
doCyclein classColorCycle
-