public class Color3f extends Tuple3f implements Serializable
Java 3D assumes that a linear (gamma-corrected) visual is used for all colors.
Constructor and Description |
---|
Color3f()
Constructs and initializes a Color3f to (0.0, 0.0, 0.0).
|
Color3f(Color color)
Constructs and initializes a Color3f from the specified AWT Color object.
|
Color3f(Color3f v1)
Constructs and initializes a Color3f from the specified Color3f.
|
Color3f(float[] v)
Constructs and initializes a Color3f from the array of length 3.
|
Color3f(float x,
float y,
float z)
Constructs and initializes a Color3f from the three xyz values.
|
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 |
---|---|
Color |
get()
Returns a new AWT color object initialized with the r,g,b values of this
Color3f object.
|
void |
set(Color color)
Sets the r,g,b values of this Color3f object to those of the specified
AWT Color object.
|
absolute, absolute, add, add, clamp, clamp, clampMax, clampMax, clampMin, clampMin, clone, epsilonEquals, equals, equals, get, get, getX, getY, getZ, hashCode, interpolate, interpolate, negate, negate, scale, scale, scaleAdd, scaleAdd, set, set, set, set, setX, setY, setZ, sub, sub, toString
public Color3f(float x, float y, float z)
x
- the red color valuey
- the green color valuez
- the blue color valuepublic Color3f(float[] v)
v
- the array of length 3 containing xyz in orderpublic Color3f(Color3f v1)
v1
- the Color3f containing the initialization x y z datapublic Color3f(Tuple3f t1)
t1
- the Tuple3f containing the initialization x y z datapublic Color3f(Tuple3d t1)
t1
- the Tuple3d containing the initialization x y z datapublic Color3f(Color color)
color
- the AWT color with which to initialize this Color3f objectpublic Color3f()
public final void set(Color color)
color
- the AWT color to copy into this Color3f objectpublic final Color get()
Copyright © 2015–2021 Fiji. All rights reserved.