public class GLColor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
float |
a |
float |
b |
static GLColor |
BLACK |
float |
g |
float |
r |
static GLColor |
WHITE |
Constructor and Description |
---|
GLColor(float n) |
GLColor(float r,
float g,
float b,
float a) |
GLColor(GLColor color) |
GLColor(int color) |
GLColor(int r,
int g,
int b,
int a) |
Modifier and Type | Method and Description |
---|---|
static GLColor |
createInterpolatedColor(GLColor color1,
GLColor color2,
float interValue) |
static GLColor |
createInterpolatedColor(int color1,
int color2,
float interValue) |
boolean |
equals(float r,
float g,
float b,
float a) |
boolean |
equals(GLColor color) |
static int |
getInterpolatedValue(int color1,
int color2,
float interValue) |
void |
multiply(float n) |
void |
multiply(GLColor color) |
void |
setValues(float r,
float g,
float b,
float a) |
void |
setValues(GLColor src) |
void |
setValues(int color) |
void |
setValues(int r,
int g,
int b,
int a) |
int |
toInt() |
java.lang.String |
toString() |
public static final GLColor BLACK
public static final GLColor WHITE
public float r
public float g
public float b
public float a
public GLColor(float r, float g, float b, float a)
public GLColor(float n)
public GLColor(int color)
color.
- E.g 0xFFFF0000public GLColor(int r, int g, int b, int a)
public GLColor(GLColor color)
public void setValues(GLColor src)
public void setValues(int color)
public void setValues(float r, float g, float b, float a)
public void setValues(int r, int g, int b, int a)
public void multiply(float n)
public void multiply(GLColor color)
public int toInt()
public boolean equals(GLColor color)
public boolean equals(float r, float g, float b, float a)
public java.lang.String toString()
toString
in class java.lang.Object
public static int getInterpolatedValue(int color1, int color2, float interValue)
public static GLColor createInterpolatedColor(int color1, int color2, float interValue)