public abstract class FloatFilter
extends java.lang.Object
IFilter
, but produces packed floats that encode colors instead of Color
objects.
Accepts packed float colors (as produced by Color.toFloatBits()
, or given in SColor documentation) or Color
objects (including SColor
instances).
Constructor and Description |
---|
FloatFilter() |
Modifier and Type | Method and Description |
---|---|
float |
alter(com.badlogic.gdx.graphics.Color color)
Takes a
Color or subclass of Color (such as SColor , which is a little more efficient here) and
produces a packed float color that this FloatFilter edited. |
abstract float |
alter(float color)
Takes a packed float color and produces a potentially-different packed float color that this FloatFilter edited.
|
public abstract float alter(float color)
color
- a packed float color, as produced by Color.toFloatBits()
Color.toFloatBits()
public float alter(com.badlogic.gdx.graphics.Color color)
Color
or subclass of Color (such as SColor
, which is a little more efficient here) and
produces a packed float color that this FloatFilter edited.color
- a Color
or instance of a subclass such as SColor
Color.toFloatBits()
Copyright © Eben Howard 2012–2022. All rights reserved.