public static class Filters.MultiLerpFilter
extends java.lang.Object
implements squidpony.IFilter<com.badlogic.gdx.graphics.Color>
Modifier and Type | Field and Description |
---|---|
float[] |
state |
Constructor and Description |
---|
MultiLerpFilter(com.badlogic.gdx.graphics.Color[] colors,
float[] amount)
Sets up a MultiLerpFilter with the desired colors to linearly interpolate towards and their amounts.
|
MultiLerpFilter(float[] r,
float[] g,
float[] b,
float[] a,
float[] amount)
Sets up a MultiLerpFilter with the desired colors to linearly interpolate towards; 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 MultiLerpFilter(float[] r, float[] g, float[] b, float[] a, float[] amount)
r
- the red components to lerp towardsg
- the green components to lerp towardsb
- the blue components to lerp towardsa
- the opacity components to lerp towardsamount
- the amounts to lerp by, should each be between 0.0 and 1.0public MultiLerpFilter(com.badlogic.gdx.graphics.Color[] colors, float[] amount)
colors
- the Colors to lerp towardsamount
- the amounts to lerp by, should each be between 0.0 and 1.0Copyright © Eben Howard 2012–2022. All rights reserved.