Class DRNGColorCycle.DIndexCell

java.lang.Object
org.monte.media.ilbm.DRNGColorCycle.Cell
org.monte.media.ilbm.DRNGColorCycle.DIndexCell
All Implemented Interfaces:
Comparable<DRNGColorCycle.Cell>
Enclosing class:
DRNGColorCycle

public static class DRNGColorCycle.DIndexCell extends DRNGColorCycle.Cell
Color register cell.
Author:
Werner Randelshofer
  • Constructor Details

    • DIndexCell

      public DIndexCell(int cell, int index)
  • Method Details

    • readValue

      public void readValue(int[] rgbs, boolean isHalfbright)
      Sets the initial value of the cell from the rgb palette.
      Specified by:
      readValue in class DRNGColorCycle.Cell
      Parameters:
      rgbs - the palette.
      isHalfbright - whether the halfbright value shall be taken.
    • writeValue

      public void writeValue(int[] rgbs, boolean isHalfbright)
      Writes the final value of the cell into the color palette.
      Specified by:
      writeValue in class DRNGColorCycle.Cell