public static class Filters.ColorizeFilter
extends java.lang.Object
implements squidpony.IFilter<com.badlogic.gdx.graphics.Color>
new Filters.ColorizeFilter(SColor.CLOVE_BROWN, 0.6f, 0.0f)
.Modifier and Type | Field and Description |
---|---|
float |
saturationMultiplier |
float |
targetHue |
float |
targetSaturation |
float |
valueModifier |
Constructor and Description |
---|
ColorizeFilter(com.badlogic.gdx.graphics.Color color)
Sets up a ColorizeFilter with the desired color to colorize towards.
|
ColorizeFilter(com.badlogic.gdx.graphics.Color color,
float saturationMultiplier,
float valueModifier)
Sets up a ColorizeFilter with the desired color to colorize towards.
|
ColorizeFilter(float r,
float g,
float b)
Sets up a ColorizeFilter with the desired color to colorize towards.
|
ColorizeFilter(float r,
float g,
float b,
float saturationMultiplier,
float valueModifier)
Sets up a ColorizeFilter with the desired color to colorize towards.
|
Modifier and Type | Method and Description |
---|---|
com.badlogic.gdx.graphics.Color |
alter(float r,
float g,
float b,
float a) |
public float targetHue
public float targetSaturation
public float saturationMultiplier
public float valueModifier
public ColorizeFilter(float r, float g, float b)
r
- the red component to colorize towardsg
- the green component to colorize towardsb
- the blue component to colorize towardspublic ColorizeFilter(com.badlogic.gdx.graphics.Color color)
color
- the Color to colorize towardspublic ColorizeFilter(float r, float g, float b, float saturationMultiplier, float valueModifier)
r
- the red component to colorize towardsg
- the green component to colorize towardsb
- the blue component to colorize towardssaturationMultiplier
- a multiplier to apply to the final color's saturation; may be greater than 1valueModifier
- a modifier that affects the final brightness value of any color this alters;
typically very small, such as in the -0.2f to 0.2f rangepublic ColorizeFilter(com.badlogic.gdx.graphics.Color color, float saturationMultiplier, float valueModifier)
color
- the Color to colorize towardssaturationMultiplier
- a multiplier to apply to the final color's saturation; may be greater than 1valueModifier
- a modifier that affects the final brightness value of any color this alters;
typically very small, such as in the -0.2f to 0.2f rangeCopyright © Eben Howard 2012–2022. All rights reserved.