Note that Java defines a byte as a signed integer in the range [-128, 127]. However, colors are more typically represented by values in the range [0, 255]. Java 3D recognizes this and for color treats the bytes as if the range were [0, 255]---in other words, as if the bytes were unsigned.
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 | Color3b(byte
the red color value c1, byte the green color value c2, byte the blue color value c3)Constructs and initializes a Color3b from the specified three values. |
| public | Color3b(byte[]
the array of length 3 containing the r,g,b data in order c)Constructs and initializes a Color3b from input array of length 3. |
| 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 Color3b object. |
| public final void |
| serialVersionUID | back to summary |
|---|---|
| pack-priv static final long serialVersionUID | |
| Color3b | back to summary |
|---|---|
| public Color3b(byte c1, byte c2, byte c3) Constructs and initializes a Color3b from the specified three values.
| |
| Color3b | back to summary |
|---|---|
| public Color3b(byte[] c) Constructs and initializes a Color3b from input array of length 3.
| |
| Color3b | back to summary |
|---|---|
| public Color3b(Color3b c1) Constructs and initializes a Color3b from the specified Color3b.
| |
| Color3b | back to summary |
|---|---|
| public Color3b(Tuple3b t1) Constructs and initializes a Color3b from the specified Tuple3b.
| |
| Color3b | back to summary |
|---|---|
| public Color3b(Color color) Constructs and initializes a Color3b 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.
| |
| Color3b | back to summary |
|---|---|
| public Color3b() Constructs and initializes a Color3b to (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 Color3b object.
| |
| set | back to summary |
|---|---|
| public final void set(Color color) Sets the r,g,b values of this Color3b object to those of the specified AWT Color object. No conversion is done on the color to compensate for gamma correction.
| |