public static class Filters.ColorizeFilter extends Filter<com.badlogic.gdx.graphics.Color>
new Filters.ColorizeFilter(SColor.CLOVE_BROWN, 0.6f, 0.0f)
.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 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 rangepublic com.badlogic.gdx.graphics.Color alter(float r, float g, float b, float a)
Copyright © 2012–2016. All rights reserved.