|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.threed.jpct.RGBColor
public class RGBColor
Mimics the Color-class in java.awt as far as jPCT-AE needs it to run.
Field Summary | |
---|---|
static RGBColor |
BLACK
|
static RGBColor |
BLUE
|
static RGBColor |
GREEN
|
static RGBColor |
RED
|
static RGBColor |
WHITE
|
Constructor Summary | |
---|---|
RGBColor()
Creates a new, black color. |
|
RGBColor(int r,
int g,
int b)
Creates a new color. |
|
RGBColor(int r,
int g,
int b,
int a)
Creates a new color with alpha. |
Method Summary | |
---|---|
int |
getAlpha()
Returns the alpha value (0..255). |
int |
getARGB()
Returns the color as an int argb value with alpha. |
int |
getBlue()
Returns the blue value (0..255). |
int |
getGreen()
Returns the green value (0..255). |
float |
getNormalizedAlpha()
Returns the alpha value in normalized form (0..1). |
float |
getNormalizedBlue()
Returns the blue value in normalized form (0..1). |
float |
getNormalizedGreen()
Returns the green value in normalized form (0..1). |
float |
getNormalizedRed()
Returns the red value in normalized form (0..1). |
int |
getRed()
Returns the red value (0..255). |
int |
getRGB()
Returns the color as an int rgb value. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final RGBColor BLACK
public static final RGBColor WHITE
public static final RGBColor RED
public static final RGBColor GREEN
public static final RGBColor BLUE
Constructor Detail |
---|
public RGBColor()
public RGBColor(int r, int g, int b)
r
- red value between 0 and 255g
- green value between 0 and 255b
- blue value between 0 and 255public RGBColor(int r, int g, int b, int a)
r
- red value between 0 and 255g
- green value between 0 and 255b
- blue value between 0 and 255a
- alpha value between 0 and 255Method Detail |
---|
public float getNormalizedRed()
public float getNormalizedGreen()
public float getNormalizedBlue()
public float getNormalizedAlpha()
public int getRed()
public int getBlue()
public int getGreen()
public int getAlpha()
public int getRGB()
public int getARGB()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |