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