public class Color4f extends Tuple4f implements java.io.Serializable
Constructor and Description |
---|
Color4f()
Constructs and initializes a Color4f to (0,0,0,0).
|
Color4f(java.awt.Color color)
Constructs color from awt.Color.
|
Color4f(Color4f c1)
Constructs and initializes a Color4f from the specified Color4f.
|
Color4f(float[] c)
Constructs and initializes a Color4f from input array of length 4.
|
Color4f(float x,
float y,
float z,
float w)
Constructs and initializes a Color4f from the specified xyzw
|
Color4f(Tuple4d t1)
Constructs and initializes a Color4f from the specified Tuple4d.
|
Color4f(Tuple4f t1)
Constructs and initializes a Color4f from the specified Tuple4f.
|
Modifier and Type | Method and Description |
---|---|
java.awt.Color |
get()
Gets awt.Color.
|
void |
set(java.awt.Color color)
Sets color from awt.Color.
|
public Color4f(float x, float y, float z, float w)
x
- the x coordinatey
- the y coordinatez
- the z coordinatew
- the w coordinatepublic Color4f(float[] c)
c
- the array of length 4 containing xyzw in orderpublic Color4f(Color4f c1)
c
- the Color4f containing the initialization x y z w datapublic Color4f(Tuple4d t1)
t1
- the Tuple4d containing the initialization x y z w datapublic Color4f(Tuple4f t1)
t1
- the Tuple4f containing the initialization x y z w datapublic Color4f()
public Color4f(java.awt.Color color)
color
- awt color