Class FloatFilters.ChainFilter

java.lang.Object
squidpony.squidgrid.gui.gdx.FloatFilter
squidpony.squidgrid.gui.gdx.FloatFilters.ChainFilter
Enclosing class:
FloatFilters

public static class FloatFilters.ChainFilter
extends FloatFilter
A FloatFilter that chains together one or more FloatFilters one after the next, passing the float output of one as input to the next until the chain has all been called.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    FloatFilter[] filters  
  • Constructor Summary

    Constructors 
    Constructor Description
    ChainFilter​(FloatFilter... filters)
    Takes a vararg or array of FloatFilter objects and produces a ChainFilter that will call all of them in order on any color given to this to alter.
  • Method Summary

    Modifier and Type Method Description
    float alter​(float color)
    Takes a packed float color and produces a potentially-different packed float color that this FloatFilter edited.

    Methods inherited from class squidpony.squidgrid.gui.gdx.FloatFilter

    alter

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • ChainFilter

      public ChainFilter​(FloatFilter... filters)
      Takes a vararg or array of FloatFilter objects and produces a ChainFilter that will call all of them in order on any color given to this to alter.
      Parameters:
      filters - an array or vararg of FloatFilter objects; none can be null
  • Method Details

    • alter

      public float alter​(float color)
      Takes a packed float color and produces a potentially-different packed float color that this FloatFilter edited.
      Specified by:
      alter in class FloatFilter
      Parameters:
      color - a packed float color, as produced by Color.toFloatBits()
      Returns:
      a packed float color, as produced by Color.toFloatBits()