Package javax.vecmath
Class Color3b
java.lang.Object
javax.vecmath.Tuple3b
javax.vecmath.Color3b
- All Implemented Interfaces:
Serializable
A three byte vector used for colors.
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionColor3b()
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.Constructs color from awt.Color.Constructs and initializes a Color3b from the specified Color3b.Constructs and initializes a Color3b from the specified Tuple3b. -
Method Summary
-
Constructor Details
-
Color3b
public Color3b(byte c1, byte c2, byte c3) Constructs and initializes a Color3b from the specified three values.- Parameters:
c1
- the first valuec2
- the second valuec3
- the third value
-
Color3b
public Color3b(byte[] c) Constructs and initializes a Color3b from input array of length 3.- Parameters:
c
- the array of length 3 containing c1 c2 c3 in order
-
Color3b
Constructs and initializes a Color3b from the specified Color3b.- Parameters:
c1
- the Color3b containing the initialization x y z data
-
Color3b
Constructs and initializes a Color3b from the specified Tuple3b.- Parameters:
t1
- the Tuple3b containing the initialization x y z data
-
Color3b
public Color3b()Constructs and initializes a Color3b to (0,0,0). -
Color3b
Constructs color from awt.Color.- Parameters:
color
- awt color
-
-
Method Details
-
set
Sets color from awt.Color.- Parameters:
color
- awt color
-
get
Gets awt.Color.- Returns:
- color awt color
-