public class Color4f extends Tuple4f implements java.io.Serializable
Java 3D assumes that a linear (gamma-corrected) visual is used for all colors.
Constructor and Description |
---|
Color4f()
Constructs and initializes a Color4f to (0.0, 0.0, 0.0, 0.0).
|
Color4f(Color4f c1)
Constructs and initializes a Color4f from the specified Color4f.
|
Color4f(float[] c)
Constructs and initializes a Color4f from the array of length 4.
|
Color4f(float x,
float y,
float z,
float w)
Constructs and initializes a Color4f from the specified xyzw
coordinates.
|
Color4f(Tuple4d t1)
Constructs and initializes a Color4f from the specified Tuple4d.
|
Color4f(Tuple4f t1)
Constructs and initializes a Color4f from the specified Tuple4f.
|
absolute, absolute, add, add, clamp, clamp, clampMax, clampMax, clampMin, clampMin, clone, epsilonEquals, equals, equals, get, get, getW, getX, getY, getZ, hashCode, interpolate, interpolate, negate, negate, scale, scale, scaleAdd, scaleAdd, set, set, set, set, setW, setX, setY, setZ, sub, sub, toString
public Color4f(float x, float y, float z, float w)
x
- the red color valuey
- the green color valuez
- the blue color valuew
- the alpha valuepublic Color4f(float[] c)
c
- the array of length 4 containing r,g,b,a in orderpublic Color4f(Color4f c1)
c1
- the Color4f containing the initialization r,g,b,a datapublic Color4f(Tuple4f t1)
t1
- the Tuple4f containing the initialization r,g,b,a datapublic Color4f(Tuple4d t1)
t1
- the Tuple4d containing the initialization r,g,b,a datapublic Color4f()