public static class Filters.PaletteFilter extends Filter<com.badlogic.gdx.graphics.Color>
Constructor and Description |
---|
PaletteFilter(com.badlogic.gdx.graphics.Color[] colors)
Sets up a PaletteFilter with the exact colors to use as Colors.
|
PaletteFilter(float[] r,
float[] g,
float[] b,
float[] a)
Sets up a PaletteFilter with the exact colors to use as individual components; the lengths of each given
array should be identical.
|
Modifier and Type | Method and Description |
---|---|
com.badlogic.gdx.graphics.Color |
alter(float r,
float g,
float b,
float a) |
public PaletteFilter(float[] r, float[] g, float[] b, float[] a)
r
- the red components to useg
- the green components to useb
- the blue components to usea
- the opacity components to usepublic PaletteFilter(com.badlogic.gdx.graphics.Color[] colors)
colors
- the Colors to usepublic com.badlogic.gdx.graphics.Color alter(float r, float g, float b, float a)
Copyright © 2012–2016. All rights reserved.