public class Color
extends java.lang.Object
implements javajs.api.GenericColor
| Modifier and Type | Field and Description |
|---|---|
int |
argb |
| Constructor and Description |
|---|
Color() |
| Modifier and Type | Method and Description |
|---|---|
static javajs.api.GenericColor |
get1(int rgb) |
static javajs.api.GenericColor |
get3(int r,
int g,
int b) |
static javajs.api.GenericColor |
get4(int r,
int g,
int b,
int a) |
int |
getOpacity255() |
int |
getRGB() |
private javajs.api.GenericColor |
set4(int r,
int g,
int b,
int a) |
void |
setOpacity255(int a) |
java.lang.String |
toString() |
public int getRGB()
getRGB in interface javajs.api.GenericColorpublic int getOpacity255()
getOpacity255 in interface javajs.api.GenericColorpublic void setOpacity255(int a)
setOpacity255 in interface javajs.api.GenericColorpublic static javajs.api.GenericColor get1(int rgb)
public static javajs.api.GenericColor get3(int r,
int g,
int b)
public static javajs.api.GenericColor get4(int r,
int g,
int b,
int a)
private javajs.api.GenericColor set4(int r,
int g,
int b,
int a)
public java.lang.String toString()
toString in class java.lang.Object