Class DRNGColorCycle

java.lang.Object
org.monte.media.ilbm.ColorCycle
org.monte.media.ilbm.DRNGColorCycle
All Implemented Interfaces:
Cloneable

public class DRNGColorCycle extends ColorCycle
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
  • 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:
      doCycle in class ColorCycle