Java 3D assumes that a linear (gamma-corrected) visual is used for all colors.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final long |
| Access | Constructor and Description |
|---|---|
| public | Color4f(float
the red color value x, float the green color value y, float the blue color value z, float the alpha value w)Constructs and initializes a Color4f from the specified xyzw coordinates. |
| public | Color4f(float[]
the array of length 4 containing r,g,b,a in order c)Constructs and initializes a Color4f from the array of length 4. |
| public | |
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final Color | Returns: a new AWT Color objectReturns a new AWT color object initialized with the r,g,b,a values of this Color4f object. |
| public final void |
| serialVersionUID | back to summary |
|---|---|
| pack-priv static final long serialVersionUID | |
| Color4f | back to summary |
|---|---|
| public Color4f(float x, float y, float z, float w) Constructs and initializes a Color4f from the specified xyzw coordinates.
| |
| Color4f | back to summary |
|---|---|
| public Color4f(float[] c) Constructs and initializes a Color4f from the array of length 4.
| |
| Color4f | back to summary |
|---|---|
| public Color4f(Color4f c1) Constructs and initializes a Color4f from the specified Color4f.
| |
| Color4f | back to summary |
|---|---|
| public Color4f(Tuple4f t1) Constructs and initializes a Color4f from the specified Tuple4f.
| |
| Color4f | back to summary |
|---|---|
| public Color4f(Tuple4d t1) Constructs and initializes a Color4f from the specified Tuple4d.
| |
| Color4f | back to summary |
|---|---|
| public Color4f(Color color) Constructs and initializes a Color4f from the specified AWT Color object. No conversion is done on the color to compensate for gamma correction.
| |
| Color4f | back to summary |
|---|---|
| public Color4f() Constructs and initializes a Color4f to (0.0, 0.0, 0.0, 0.0). | |
| get | back to summary |
|---|---|
| public final Color get() Returns a new AWT color object initialized with the r,g,b,a values of this Color4f object.
| |
| set | back to summary |
|---|---|
| public final void set(Color color) Sets the r,g,b,a values of this Color4f object to those of the specified AWT Color object. No conversion is done on the color to compensate for gamma correction.
| |