public class Color extends Vector4f
| Modifier and Type | Field and Description |
|---|---|
static Color |
BLACK |
static Color |
BLUE |
static Color |
GREEN |
static Color |
MAGENTA |
static Color |
ORANGE |
static Color |
RED |
static Color |
TRANSPARENT_BLACK |
static Color |
TURQUOISE |
static Color |
WHITE |
static Color |
YELLOW |
| Constructor and Description |
|---|
Color(float r,
float g,
float b) |
Color(float r,
float g,
float b,
float a) |
Color(Vector3f rgb,
float a) |
Color(Vector4f rgba) |
| Modifier and Type | Method and Description |
|---|---|
float |
getAlpha() |
float |
getBlue() |
Vector3f |
getColor()
Returns the true color, by multiplying the RGB components by alpha
|
float |
getGreen() |
float |
getRed() |
Vector3f |
getRGB()
Returns the raw RGB values, ignoring the alpha
|
void |
setAlpha(float alpha) |
void |
setBlue(float blue) |
void |
setGreen(float green) |
void |
setRed(float red) |
Color |
toAwt() |
public static final Color BLACK
public static final Color TRANSPARENT_BLACK
public static final Color WHITE
public static final Color RED
public static final Color GREEN
public static final Color BLUE
public static final Color YELLOW
public static final Color MAGENTA
public static final Color TURQUOISE
public static final Color ORANGE
public Color(float r,
float g,
float b,
float a)
public Color(float r,
float g,
float b)
public Color(Vector4f rgba)
public Color(Vector3f rgb, float a)
public Color toAwt()
public Vector3f getRGB()
public Vector3f getColor()
public float getRed()
public void setRed(float red)
public float getGreen()
public void setGreen(float green)
public float getBlue()
public void setBlue(float blue)
public float getAlpha()
public void setAlpha(float alpha)
Copyright © 2014. All rights reserved.