public class Color
extends java.lang.Object
Constructor and Description |
---|
Color() |
Color(double red,
double green,
double blue,
double alpha) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
double |
getAlpha()
The alpha component of this color in the range [0-1].
|
double |
getBlue()
The blue component of this color in the range [0-1].
|
double |
getGreen()
The green component of this color in the range [0-1].
|
double |
getRed()
The red component of this color in the range [0-1].
|
int |
hashCode() |
void |
setAlpha(double alpha)
The alpha component of this color in the range [0-1].
|
void |
setBlue(double blue)
The blue component of this color in the range [0-1].
|
void |
setGreen(double green)
The green component of this color in the range [0-1].
|
void |
setRed(double red)
The red component of this color in the range [0-1].
|
java.lang.String |
toString() |
public Color()
public Color(double red, double green, double blue, double alpha)
@Pure public double getRed()
public void setRed(double red)
@Pure public double getGreen()
public void setGreen(double green)
@Pure public double getBlue()
public void setBlue(double blue)
@Pure public double getAlpha()
public void setAlpha(double alpha)
@Pure public java.lang.String toString()
toString
in class java.lang.Object
@Pure public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
@Pure public int hashCode()
hashCode
in class java.lang.Object