Package squidpony.squidgrid.gui.gdx
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.
-
Field Details
-
Constructor Details
-
ChainFilter
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
Takes a packed float color and produces a potentially-different packed float color that this FloatFilter edited.- Specified by:
alter
in classFloatFilter
- Parameters:
color
- a packed float color, as produced byColor.toFloatBits()
- Returns:
- a packed float color, as produced by
Color.toFloatBits()
-