Constructor and Description |
---|
RGBColor(int red,
int green,
int blue)
Creates an RGB with default alpha of 255.
|
RGBColor(int red,
int green,
int blue,
int alpha) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
static RGBColor |
fromARGBInt(int argb) |
static RGBColor |
fromAwt(java.awt.Color color) |
static RGBColor |
fromRGB(int[] rgb) |
static RGBColor |
fromRGBInt(int rgb) |
int |
hashCode() |
int |
toARGBInt() |
int[] |
toArray() |
CMYKColor |
toCMYK()
Returns a conversion of this color into a CYMK color.
|
HSLColor |
toHSL() |
HSVColor |
toHSV() |
int |
toInt()
Deprecated.
|
RGBColor |
toRGB()
Returns a conversion of this Color into an RGBColor.
|
java.lang.String |
toString() |
RGBColor |
withBlue(int b) |
RGBColor |
withGreen(int g) |
RGBColor |
withRed(int r) |
public final int red
public final int green
public final int blue
public final int alpha
public RGBColor(int red, int green, int blue)
public RGBColor(int red, int green, int blue, int alpha)
public static RGBColor fromARGBInt(int argb)
public static RGBColor fromRGBInt(int rgb)
public static RGBColor fromAwt(java.awt.Color color)
public static RGBColor fromRGB(int[] rgb)
@Deprecated public int toInt()
public int toARGBInt()
public RGBColor toRGB()
Color
public RGBColor withRed(int r)
public RGBColor withBlue(int b)
public RGBColor withGreen(int g)
public int[] toArray()
public CMYKColor toCMYK()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object