public class Color3f extends Tuple3f implements java.io.Serializable
| Constructor and Description |
|---|
Color3f()
Constructs and initializes a Color3f to (0,0,0).
|
Color3f(java.awt.Color color)
Constructs color from awt.Color.
|
Color3f(Color3f c1)
Constructs and initializes a Color3f from the specified Color3f.
|
Color3f(float[] c)
Constructs and initializes a Color3f from input array of length 3.
|
Color3f(float x,
float y,
float z)
Constructs and initializes a Color3f from the specified xyz
|
Color3f(Tuple3d t1)
Constructs and initializes a Color3f from the specified Tuple3d.
|
Color3f(Tuple3f t1)
Constructs and initializes a Color3f from the specified Tuple3f.
|
| 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 Color3f(float x,
float y,
float z)
x - the x coordinatey - the y coordinatez - the z coordinatepublic Color3f(float[] c)
c - the array of length 3 containing xyz in orderpublic Color3f(Color3f c1)
c1 - the Color3f containing the initialization x y z datapublic Color3f(Tuple3d t1)
t1 - the Tuple3d containing the initialization x y z datapublic Color3f(Tuple3f t1)
t1 - the Tuple3f containing the initialization x y z datapublic Color3f()
public Color3f(java.awt.Color color)
color - awt color