Package squidpony.squidgrid.gui.gdx
Class Filters.GammaCorrectFilter
java.lang.Object
squidpony.squidgrid.gui.gdx.Filters.GammaCorrectFilter
- All Implemented Interfaces:
IFilter<com.badlogic.gdx.graphics.Color>
- Enclosing class:
- Filters
public static class Filters.GammaCorrectFilter extends Object implements IFilter<com.badlogic.gdx.graphics.Color>
An IFilter that performs a brightness adjustment to make dark areas lighter and light areas not much less bright.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description GammaCorrectFilter(float gamma, float maxValue)
Sets up a GammaCorrectFilter with the desired gamma adjustment. -
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
-
GammaCorrectFilter
Sets up a GammaCorrectFilter with the desired gamma adjustment.- Parameters:
gamma
- should be 1.0 or less, and must be greater than 0. Typical values are between 0.4 to 0.8.maxValue
- the maximum brightness in the colors this will be passed; use MaxValueFilter for this
-
-
Method Details