public static class FloatFilters.GrayscaleFilter extends FloatFilter
SColor.lumaOfFloat(float) as the lightness (it does also preserve alpha transparency).| Constructor and Description |
|---|
GrayscaleFilter() |
| Modifier and Type | Method and Description |
|---|---|
float |
alter(float color)
Takes a packed float color and produces a grayscale packed float color that this FloatFilter edited.
|
alterpublic float alter(float color)
SColor.lumaOfFloat(float) instead of the value calculation from
SColor.valueOfFloat(float); luma tends to be more visually-accurate on modern monitors.alter in class FloatFiltercolor - a packed float color, as produced by Color.toFloatBits()Color.toFloatBits()Copyright © Eben Howard 2012–2022. All rights reserved.