public class RGBColor
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
static RGBColor |
BLACK |
|
static RGBColor |
BLUE |
|
static RGBColor |
GREEN |
|
static RGBColor |
ORANGE |
|
static RGBColor |
PURPLE |
|
static RGBColor |
RED |
|
static RGBColor |
TANSPARENT |
|
static RGBColor |
WHITE |
|
static RGBColor |
YELLOW |
| Constructor | Description |
|---|---|
RGBColor() |
| Modifier and Type | Method | Description |
|---|---|---|
RGBColor |
add(RGBColor second) |
|
static RGBColor |
create(float red,
float green,
float blue) |
|
static RGBColor |
create(java.lang.String value) |
|
boolean |
equals(java.lang.Object other) |
|
int |
getArgb() |
|
int |
getBlue() |
|
float |
getCyan() |
|
int |
getGreen() |
|
float |
getMagenta() |
|
int |
getRed() |
|
float |
getYellow() |
|
int |
hashCode() |
|
RGBColor |
minus(RGBColor second) |
|
static RGBColor |
minus(java.lang.String colorA,
java.lang.String colorB) |
|
java.lang.String |
toString() |
|
RGBColor |
withBlue(int blue) |
|
RGBColor |
withGreen(int green) |
|
RGBColor |
withRed(int red) |
|
RGBColor |
withValue(float red,
float green,
float blue) |
public static final RGBColor WHITE
public static final RGBColor TANSPARENT
public static final RGBColor BLACK
public static final RGBColor RED
public static final RGBColor GREEN
public static final RGBColor BLUE
public static final RGBColor PURPLE
public static final RGBColor YELLOW
public static final RGBColor ORANGE
public RGBColor withValue(float red, float green, float blue)
public static RGBColor create(java.lang.String value)
public static RGBColor create(float red, float green, float blue)
public int getRed()
public RGBColor withRed(int red)
red - the red to setpublic int getGreen()
public RGBColor withGreen(int green)
green - the green to setpublic int getBlue()
public RGBColor withBlue(int blue)
blue - the blue to setpublic int getArgb()
public static RGBColor minus(java.lang.String colorA, java.lang.String colorB)
public float getCyan()
public float getMagenta()
public float getYellow()
public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object