public class Pigment
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
double |
b
The blue component
|
double |
f
The filter component
|
double |
g
The green component
|
double |
r
The red component
|
double |
t
The transparency component
|
Constructor and Description |
---|
Pigment()
Creates a new instance of Pigment
|
Pigment(double _r,
double _g,
double _b) |
Modifier and Type | Method and Description |
---|---|
void |
add(double _r,
double _g,
double _b)
Add a triplet (r/g/b) to us
|
void |
add(Vector v)
Add another vector to ours.
|
void |
setRGB(double _r,
double _g,
double _b)
Set the red/green/blue component values for this pigment
|
java.lang.String |
toString()
Return a Pov-Ray source string representation of this pigment
|
public double r
public double g
public double b
public double t
public double f
public Pigment()
public Pigment(double _r, double _g, double _b)
public void setRGB(double _r, double _g, double _b)
public void add(double _r, double _g, double _b)
public void add(Vector v)
v
- The other vector.public java.lang.String toString()
toString
in class java.lang.Object