public class ColorHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static int |
getBlue(int color)
Gets a color blue component.
|
static int |
getColor(int red,
int green,
int blue)
Gets the color from red, green and blue components.
|
static int |
getGreen(int color)
Gets a color green component.
|
static int |
getRed(int color)
Gets a color red component.
|
static int |
updateComponent(int component,
int increment)
Update a color component by incrementing it.
|
public static int getBlue(int color)
color - the color.public static int getColor(int red,
int green,
int blue)
red - the red component.green - the green component.blue - the blue component.public static int getGreen(int color)
color - the color.public static int getRed(int color)
color - the color.public static int updateComponent(int component,
int increment)
The resulting value is bounded to a component limits.
component - the initial component value.increment - the increment to apply.