public final class Color
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Color |
BLACK
Black.
|
static Color |
BLUE
Blue.
|
static Color |
CYAN
Cyan (blue-green).
|
static Color |
GREEN
Green.
|
static Color |
MAGENTA
Magenta (purple).
|
static Color |
RED
Red.
|
static Color |
WHITE
White.
|
static Color |
YELLOW
Yellow.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object rhs)
Comparison check.
|
int |
getValue()
Get color value.
|
int |
hashCode()
Hashcode uses all fields in equals().
|
Color |
invert()
Invert a color in the same way as (CGA/VGA color XOR 0x7).
|
java.lang.String |
toString()
Make human-readable description of this Color.
|
public static final Color BLACK
public static final Color RED
public static final Color GREEN
public static final Color YELLOW
public static final Color BLUE
public static final Color MAGENTA
public static final Color CYAN
public static final Color WHITE
public int getValue()
public Color invert()
public boolean equals(java.lang.Object rhs)
equals
in class java.lang.Object
rhs
- another Color instancepublic int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2019 Kevin Lamonte. Licensed MIT.