public static class Filters.GammaCorrectFilter extends Filter<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 thispublic com.badlogic.gdx.graphics.Color alter(float r, float g, float b, float a)
Copyright © 2012–2016. All rights reserved.