public class Color3b extends Tuple3b implements java.io.Serializable
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.
| Constructor and Description |
|---|
Color3b()
Constructs and initializes a Color3b to (0,0,0).
|
Color3b(byte[] c)
Constructs and initializes a Color3b from input array of length 3.
|
Color3b(byte c1,
byte c2,
byte c3)
Constructs and initializes a Color3b from the specified three values.
|
Color3b(Color3b c1)
Constructs and initializes a Color3b from the specified Color3b.
|
Color3b(Tuple3b t1)
Constructs and initializes a Color3b from the specified Tuple3b.
|
public Color3b(byte c1,
byte c2,
byte c3)
c1 - the red color valuec2 - the green color valuec3 - the blue color valuepublic Color3b(byte[] c)
c - the array of length 3 containing the r,g,b data in orderpublic Color3b(Color3b c1)
c1 - the Color3b containing the initialization r,g,b datapublic Color3b(Tuple3b t1)
t1 - the Tuple3b containing the initialization r,g,b datapublic Color3b()