public static class Filters.GammaCorrectFilter
extends java.lang.Object
implements squidpony.IFilter<com.badlogic.gdx.graphics.Color>
Constructor and Description |
---|
GammaCorrectFilter(float gamma,
float maxValue)
Sets up a GammaCorrectFilter with the desired gamma adjustment.
|
Modifier and Type | Method and Description |
---|---|
com.badlogic.gdx.graphics.Color |
alter(float r,
float g,
float b,
float a) |
public GammaCorrectFilter(float gamma, float maxValue)
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 thisCopyright © Eben Howard 2012–2022. All rights reserved.