public static class Filters.LerpFilter extends Filter<com.badlogic.gdx.graphics.Color>
Constructor and Description |
---|
LerpFilter(com.badlogic.gdx.graphics.Color color,
float amount)
Sets up a LerpFilter with the desired color to linearly interpolate towards.
|
LerpFilter(float r,
float g,
float b,
float a,
float amount)
Sets up a LerpFilter with the desired color to linearly interpolate towards.
|
Modifier and Type | Method and Description |
---|---|
com.badlogic.gdx.graphics.Color |
alter(float r,
float g,
float b,
float a) |
public LerpFilter(float r, float g, float b, float a, float amount)
r
- the red component to lerp towardsg
- the green component to lerp towardsb
- the blue component to lerp towardsa
- the opacity component to lerp towardsamount
- the amount to lerp by, should be between 0.0 and 1.0public LerpFilter(com.badlogic.gdx.graphics.Color color, float amount)
color
- the Color to lerp towardsamount
- the amount to lerp by, should be between 0.0 and 1.0public com.badlogic.gdx.graphics.Color alter(float r, float g, float b, float a)
Copyright © 2012–2016. All rights reserved.