public static class FloatFilters.HSVFilter extends FloatFilter
SColor.toEditedFloat(float, float, float, float, float)
so it can be called as
a FloatFilter, adding values to hue, saturation, and value (clamping saturation and value and wrapping hue).
Hue is in the 0.0 to 1.0 range, as SquidLib handles it, instead of libGDX's 0 to 360 range.Modifier and Type | Field and Description |
---|---|
float |
hueAddend |
float |
saturationAddend |
float |
valueAddend |
Constructor and Description |
---|
HSVFilter(float saturation,
float value) |
HSVFilter(float hueAdd,
float saturationAdd,
float valueAdd) |
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.
|
alter
public float hueAddend
public float saturationAddend
public float valueAddend
public HSVFilter(float saturation, float value)
public HSVFilter(float hueAdd, float saturationAdd, float valueAdd)
public float alter(float color)
alter
in class FloatFilter
color
- a packed float color, as produced by Color.toFloatBits()
Color.toFloatBits()
Copyright © Eben Howard 2012–2022. All rights reserved.