public class DRNGColorCycle extends ColorCycle
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;
Modifier and Type | Class and Description |
---|---|
static class |
DRNGColorCycle.Cell |
static class |
DRNGColorCycle.DColorCell
True color cell.
|
static class |
DRNGColorCycle.DIndexCell
Color register cell.
|
isActive, isBlended, rate, timeScale
Constructor and Description |
---|
DRNGColorCycle(int rate,
int timeScale,
int min,
int max,
boolean isActive,
boolean isEHB,
DRNGColorCycle.Cell[] cells) |
Modifier and Type | Method and Description |
---|---|
void |
doCycle(int[] rgbs,
long time) |
int |
getMax() |
int |
getMin() |
clone, getRate, getTimeScale, isActive, isBlended, setBlended
public DRNGColorCycle(int rate, int timeScale, int min, int max, boolean isActive, boolean isEHB, DRNGColorCycle.Cell[] cells)
rate
- timeScale
- min
- max
- isActive
- isEHB
- cells
- public int getMin()
public int getMax()
public void doCycle(int[] rgbs, long time)
doCycle
in class ColorCycle