Class ColorCycle

java.lang.Object
org.monte.media.ilbm.ColorCycle
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
CRNGColorCycle, DRNGColorCycle

public abstract class ColorCycle extends Object implements Cloneable
Base class for color cycling in an IFF ILBM image.
Author:
Werner Randelshofer
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected boolean
    Whether the color cycle is active.
    protected boolean
    Whether colors are blended into each other when shifted.
    protected int
    Cycle rate.
    protected int
    Time scale of the cycle rate.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ColorCycle(int rate, int timeScale, boolean isActive)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Object
     
    abstract void
    doCycle(int[] rgbs, long time)
     
    int
     
    int
     
    boolean
     
    boolean
    Returns true if colors are blended when shifted.
    void
    setBlended(boolean newValue)
    Set to true to blend colors when they are shifted.

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • rate

      protected int rate
      Cycle rate.
    • timeScale

      protected int timeScale
      Time scale of the cycle rate. Dividing the rate by the time scale yields the rate per second.
    • isActive

      protected boolean isActive
      Whether the color cycle is active.
    • isBlended

      protected boolean isBlended
      Whether 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

      protected Object clone()
      Overrides:
      clone in class Object