Package javax.vecmath
Class Color4b
java.lang.Object
javax.vecmath.Tuple4b
javax.vecmath.Color4b
- All Implemented Interfaces:
Serializable
A four byte colors (mostly used for colors with alpha).
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionColor4b()
Constructs and initializes a Color4b to (0,0,0,0).Color4b
(byte[] c) Constructs and initializes a Color4b from input array of length 4.Color4b
(byte c1, byte c2, byte c3, byte c4) Constructs and initializes a Color4b from the specified four values.Constructs color from awt.Color.Constructs and initializes a Color4b from the specified Color4b.Constructs and initializes a Color4b from the specified Tuple4b. -
Method Summary
-
Constructor Details
-
Color4b
public Color4b(byte c1, byte c2, byte c3, byte c4) Constructs and initializes a Color4b from the specified four values.- Parameters:
c1
- the first valuec2
- the second valuec3
- the third valuec4
- the fourth value
-
Color4b
public Color4b(byte[] c) Constructs and initializes a Color4b from input array of length 4.- Parameters:
c
- the array of length 4 containing c1 c2 c3 c4 in order
-
Color4b
Constructs and initializes a Color4b from the specified Color4b.- Parameters:
c1
- the Color4b containing the initialization x y z w data
-
Color4b
Constructs and initializes a Color4b from the specified Tuple4b.- Parameters:
t1
- the Tuple4b containing the initialization x y z w data
-
Color4b
public Color4b()Constructs and initializes a Color4b to (0,0,0,0). -
Color4b
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
-