Package squidpony.squidgrid.gui.gdx
Class Filters.DistinctRedGreenFilter
java.lang.Object
squidpony.squidgrid.gui.gdx.Filters.DistinctRedGreenFilter
- All Implemented Interfaces:
IFilter<com.badlogic.gdx.graphics.Color>
- Enclosing class:
- Filters
public static class Filters.DistinctRedGreenFilter extends Object implements IFilter<com.badlogic.gdx.graphics.Color>
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). Causes reds to be darkened and greens to be lightened if the
other of the pair is not present in similar quantities (which is the case for yellows and blues).
-
Constructor Summary
Constructors Constructor Description DistinctRedGreenFilter()
Constructs a DistinctRedGreenFilter. -
Method Summary
Modifier and Type Method Description com.badlogic.gdx.graphics.Color
alter(float r, float g, float b, float a)
-
Constructor Details
-
DistinctRedGreenFilter
public DistinctRedGreenFilter()Constructs a DistinctRedGreenFilter. This class is a simple wrapper around a function that doesn't need member variables, so there should be little overhead with this filter.
-
-
Method Details