public class Color
extends java.lang.Object
Constructor and Description |
---|
Color(int r,
int g,
int b)
All color channel should be in 0-255 range, alpha will default to 255 if not given
|
Color(int r,
int g,
int b,
int a)
All color channel should be in 0-255 range
|
Modifier and Type | Method and Description |
---|---|
int |
getAlpha() |
int |
getBlue() |
int |
getGreen() |
int |
getRed() |
int |
getRGB() |
public Color(int r, int g, int b)
r
- redg
- greenb
- bluepublic Color(int r, int g, int b, int a)
r
- redg
- greenb
- bluea
- alphaCopyright © 2005-2018 Potix Corporation. All Rights Reserved.