gnu.x11
Class RGB
java.lang.Object
gnu.x11.RGB
public class RGB
- extends java.lang.Object
X RGB.
Note, following the convention of X specification, these RGB values are
16-bit, ranging from 0 to 65535, instead of 8-bit (0 to 255) in some
other areas.
Constructor Summary |
RGB(int red,
int green,
int blue)
|
RGB(java.lang.String spec)
|
Method Summary |
static RGB |
grey(int level)
|
static RGB |
hsv(int hue,
float saturation,
float value)
|
static RGB |
rgb8(int red8,
int green8,
int blue8)
|
java.lang.String |
spec()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RED
public static final RGB RED
SLATE_GREY
public static final RGB SLATE_GREY
DIM_GREY
public static final RGB DIM_GREY
GREY
public static final RGB GREY
GREY64
public static final RGB GREY64
GREEN
public static final RGB GREEN
BLUE
public static final RGB BLUE
ANTIQUE_WHITE3
public static final RGB ANTIQUE_WHITE3
JAVA_PRIMARY1
public static final RGB JAVA_PRIMARY1
JAVA_PRIMARY2
public static final RGB JAVA_PRIMARY2
JAVA_PRIMARY3
public static final RGB JAVA_PRIMARY3
JAVA_SECONDARY1
public static final RGB JAVA_SECONDARY1
JAVA_SECONDARY2
public static final RGB JAVA_SECONDARY2
JAVA_SECONDARY3
public static final RGB JAVA_SECONDARY3
JAVA_BLACK
public static final RGB JAVA_BLACK
JAVA_WHITE
public static final RGB JAVA_WHITE
red
public int red
green
public int green
blue
public int blue
RGB
public RGB(java.lang.String spec)
RGB
public RGB(int red,
int green,
int blue)
rgb8
public static RGB rgb8(int red8,
int green8,
int blue8)
grey
public static RGB grey(int level)
hsv
public static RGB hsv(int hue,
float saturation,
float value)
spec
public java.lang.String spec()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object