Class Filters

java.lang.Object
squidpony.squidgrid.gui.gdx.Filters

public final class Filters
extends Object
Implementations of IFilter, that all are meant to perform different changes to colors before they are created. They should usually be passed to SquidColorCenter's constructor, which can use them.
Created by Tommy Ettinger on 10/31/2015.
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Class Description
    static class  Filters.ChainFilter  
    static class  Filters.ColorizeFilter
    An IFilter that is constructed with a color and makes any color it is told to alter have the same hue as the given color, have saturation that is somewhere between the given color's and the altered colors, and chiefly is distinguishable from other colors by value.
    static class  Filters.DistinctRedGreenFilter
    An IFilter 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  Filters.GammaCorrectFilter
    An IFilter that performs a brightness adjustment to make dark areas lighter and light areas not much less bright.
    static class  Filters.GrayscaleFilter
    An IFilter that converts all colors passed to it to grayscale, like a black and white film.
    static class  Filters.HallucinateFilter
    An IFilter that makes the colors requested from it highly saturated, with the original hue, value and a timer that increments very slowly altering hue, with hue, value and the timer altering saturation, and the original hue, saturation, and value all altering value.
    static class  Filters.IdentityFilter
    An IFilter that does nothing to the colors it is given but pass them along unchanged.
    static class  Filters.LerpFilter
    An IFilter that is constructed with a color and linear-interpolates any color it is told to alter toward the color it was constructed with.
    static class  Filters.MaxValueFilter
    An IFilter that tracks the highest brightness for any component it was assigned and stores it in its Filters.MaxValueFilter.state field.
    static class  Filters.MultiLerpFilter
    An IFilter that is constructed with a group of colors and linear-interpolates any color it is told to alter toward the color it was constructed with that has the closest hue.
    static class  Filters.PaletteFilter
    An IFilter that is constructed with a group of colors and forces any color it is told to alter to exactly the color it was constructed with that has the closest red, green, and blue components.
    static class  Filters.SaturationFilter
    An IFilter that multiplies the saturation of any color requested from it by a number given during construction.
    static class  Filters.SaturationValueFilter
    An IFilter that multiplies the saturation and the value of any color requested from it by different numbers given during construction.
    static class  Filters.WiggleFilter
    An IFilter that is constructed with a palette of colors and randomly increases or decreases the red, green, and blue components of any color it is told to alter.
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait