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 | Color3f(float
the red color value x, float the green color value y, float the blue color value z)Constructs and initializes a Color3f from the three xyz values. |
| public | Color3f(float[]
the array of length 3 containing xyz in order v)Constructs and initializes a Color3f from the array of length 3. |
| 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 values of this Color3f object. |
| public final void |
| serialVersionUID | back to summary |
|---|---|
| pack-priv static final long serialVersionUID | |
| Color3f | back to summary |
|---|---|
| public Color3f(float x, float y, float z) Constructs and initializes a Color3f from the three xyz values.
| |
| Color3f | back to summary |
|---|---|
| public Color3f(float[] v) Constructs and initializes a Color3f from the array of length 3.
| |
| Color3f | back to summary |
|---|---|
| public Color3f(Color3f v1) Constructs and initializes a Color3f from the specified Color3f.
| |
| Color3f | back to summary |
|---|---|
| public Color3f(Tuple3f t1) Constructs and initializes a Color3f from the specified Tuple3f.
| |
| Color3f | back to summary |
|---|---|
| public Color3f(Tuple3d t1) Constructs and initializes a Color3f from the specified Tuple3d.
| |
| Color3f | back to summary |
|---|---|
| public Color3f(Color color) Constructs and initializes a Color3f from the specified AWT Color object. The alpha value of the AWT color is ignored. No conversion is done on the color to compensate for gamma correction.
| |
| Color3f | back to summary |
|---|---|
| public Color3f() Constructs and initializes a Color3f to (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 values of this Color3f object.
| |
| set | back to summary |
|---|---|
| public final void set(Color color) Sets the r,g,b values of this Color3f object to those of the specified AWT Color object. No conversion is done on the color to compensate for gamma correction.
| |