public static class FloatFilters.LerpFilter extends FloatFilter
SColor.lerpFloatColorsBlended(float, float, float) to mix a requested color with the target
color, and this means the alpha of the target color affects the amount of change instead of the resulting alpha.| Constructor and Description |
|---|
LerpFilter(com.badlogic.gdx.graphics.Color target,
float amount)
Builds a LerpFilter with a Color (which will be converted to a packed float color) and an amount as a float.
|
LerpFilter(float target,
float amount)
Builds a LerpFilter with a packed float color and an amount as a float.
|
| Modifier and Type | Method and Description |
|---|---|
float |
alter(float color)
Takes a packed float color and produces a potentially-different packed float color that this FloatFilter edited.
|
alterpublic LerpFilter(com.badlogic.gdx.graphics.Color target,
float amount)
target - a libGDX color; must not be nullamount - a float that determines how much target will affect an input color; will be clamped between 0f and 1fpublic LerpFilter(float target,
float amount)
target - a packed float color; must not be nullamount - a float that determines how much target will affect an input color; will be clamped between 0f and 1fpublic float alter(float color)
alter in class FloatFiltercolor - a packed float color, as produced by Color.toFloatBits()Color.toFloatBits()Copyright © Eben Howard 2012–2022. All rights reserved.