public final class FloatFilters
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
FloatFilters.ChainFilter
A FloatFilter that chains together one or more FloatFilters one after the next, passing the float output of one
as input to the next until the chain has all been called.
|
static class |
FloatFilters.ColorizeFilter
Changes all colors this alters to have the same hue as, and a closer saturation to, a target color given in the
constructor, as well as optionally multiplying saturation of the result and/or adding lightness/value.
|
static class |
FloatFilters.DistinctRedGreenFilter
A FloatFilter that alters primarily-red and primarily-green colors so they can be more easily be distinguished by
people with at least some forms of red-green color-blindness (deuteranopia should be handled well, protanopia
very well, and tritanopia may not benefit at all).
|
static class |
FloatFilters.GrayscaleFilter
A FloatFilter that makes all colors given to it grayscale, using only their luma as calculated by
SColor.lumaOfFloat(float) as the lightness (it does also preserve alpha transparency). |
static class |
FloatFilters.HallucinateFilter
A FloatFilter that makes the colors requested from it highly saturated and change in strange ways.
|
static class |
FloatFilters.HSVFilter
Wraps the functionality of
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). |
static class |
FloatFilters.IdentityFilter
A FloatFilter that makes no changes to the colors given to it; useful as a default for when no filter is wanted.
|
static class |
FloatFilters.LerpFilter
A FloatFilter that linearly interpolates (lerps) any color it is given toward a specified color by a specified
amount.
|
static class |
FloatFilters.MultiLerpFilter
A FloatFilter that linearly interpolates (lerps) any color it is given toward the most-similar of a group of
given colors.
|
static class |
FloatFilters.PaletteFilter
A FloatFilter that limits the colors it can return to a fixed palette, and won't return any colors that are
missing from that palette (although it can always return fully-transparent).
|
static class |
FloatFilters.PaletteReducerFilter
A FloatFilter that limits the colors it can return to a fixed palette as determined by a
PaletteReducer ,
and won't return any colors that are missing from that palette (although it can always return fully-transparent). |
static class |
FloatFilters.WiggleFilter
Randomly changes each color requested by up to 1/8 of the full range for a channel, up or down.
|
static class |
FloatFilters.YCbCrFilter
Like
FloatFilters.HSVFilter , but edits its input colors in YCbCr color space, and multiplies rather than adds. |
static class |
FloatFilters.YCoCgFilter
Like
FloatFilters.YCbCrFilter , but edits its input colors in YCoCg color space, or like FloatFilters.HSVFilter except it
doesn't add, it multiplies. |
static class |
FloatFilters.YCwCmFilter
Like
FloatFilters.YCbCrFilter or FloatFilters.YCoCgFilter , but edits its input colors in YCwCm color space, which is very
similar to YCoCg but has chroma/chrominance components that are useful aesthetically on their own. |
Modifier and Type | Field and Description |
---|---|
static FloatFilters.GrayscaleFilter |
grayscaleFilter |
static FloatFilters.IdentityFilter |
identityFilter
A static constant of the one possible IdentityFilter, to avoid needing to make duplicates.
|
public static final FloatFilters.IdentityFilter identityFilter
public static final FloatFilters.GrayscaleFilter grayscaleFilter
Copyright © Eben Howard 2012–2022. All rights reserved.