Package squidpony.squidgrid.gui.gdx
Class Filters.MaxValueFilter
java.lang.Object
squidpony.squidgrid.gui.gdx.Filters.MaxValueFilter
- All Implemented Interfaces:
IFilter<com.badlogic.gdx.graphics.Color>
- Enclosing class:
- Filters
public static class Filters.MaxValueFilter extends Object implements IFilter<com.badlogic.gdx.graphics.Color>
An IFilter that tracks the highest brightness for any component it was assigned and stores it in its
state
field. You probably want to set state to 0f before filtering a bunch of colors, if this is being used to find
the brightest color on the screen.-
Field Summary
Fields Modifier and Type Field Description float
state
-
Constructor Summary
Constructors Constructor Description MaxValueFilter()
-
Method Summary
Modifier and Type Method Description com.badlogic.gdx.graphics.Color
alter(float r, float g, float b, float a)
-
Field Details
-
Constructor Details
-
MaxValueFilter
public MaxValueFilter()
-
-
Method Details