public static class Filters.LerpFilter
extends java.lang.Object
implements squidpony.IFilter<com.badlogic.gdx.graphics.Color>
| Modifier and Type | Field and Description |
|---|---|
float |
a |
float |
amount |
float |
b |
float |
g |
float |
r |
| 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 float r
public float g
public float b
public float a
public float amount
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.0Copyright © Eben Howard 2012–2022. All rights reserved.