Class RandomMode

java.lang.Object
rekit.logic.filters.RandomMode
All Implemented Interfaces:
Filter

@LoadMe public final class RandomMode extends Object implements Filter
This filter realizes a filter which will map a color to a random color.
Author:
Dominik Fuchss
  • Field Details

  • Method Details

    • changed

      public boolean changed()
      Description copied from interface: Filter
      Indicates whether the internal state of the Filter has been changed.
      Specified by:
      changed in interface Filter
      Returns:
      true if state changed, false otherwise
    • apply

      public RGBAColor apply(RGBAColor color)
      Description copied from interface: Filter
      Apply Filter.
      Specified by:
      apply in interface Filter
      Parameters:
      color - the original color
      Returns:
      the new color
    • isApplyPixel

      public boolean isApplyPixel()
      Description copied from interface: Filter
      This boolean indicates whether this filter can be applied pixel per pixel (fast).
      Specified by:
      isApplyPixel in interface Filter
      Returns:
      true if Filter.apply(RGBAColor) shall be used
    • isApplyImage

      public boolean isApplyImage()
      Description copied from interface: Filter
      This boolean indicates whether this filter can be applied pixel per pixel (slow).
      Specified by:
      isApplyImage in interface Filter
      Returns:
      true if Filter.apply(AbstractImage) shall be used