public class SFColor extends Field
Constructor and Description |
---|
SFColor()
Construct an SFColor field with the default values.
|
SFColor(float red,
float green,
float blue)
Construct an SFColor field.
|
Modifier and Type | Method and Description |
---|---|
float |
getBlue()
Get the B-component of the SFColor.
|
float |
getGreen()
Get the G-component of the SFColor.
|
float |
getRed()
Get the R-component of the SFColor.
|
void |
getValue(float[] colors)
Get the R,G,B values representing the SFColor.
|
void |
setValue(ConstSFColor color)
Set the value of an SFColor using the given SFColor.
|
void |
setValue(float[] colors)
Set the value of an SFColor.
|
void |
setValue(float red,
float green,
float blue)
Set an SFColor with the given RGB values.
|
void |
setValue(SFColor color)
Set the value of an SFColor using the given SFColor.
|
public SFColor()
public SFColor(float red, float green, float blue)
red
- R-component of colorgreen
- G-component of colorblue
- B-component of colorpublic void getValue(float[] colors)
colors
- R,G,B value representing the SFColorpublic float getRed()
public float getGreen()
public float getBlue()
public void setValue(float[] colors)
colors
- R, G, B valuepublic void setValue(float red, float green, float blue)
red
- R-component of the colorgreen
- G-component of the colorblue
- B-component of the colorpublic void setValue(ConstSFColor color)
color
- ConstSFColor to take RGB value frompublic void setValue(SFColor color)
color
- SFColor to take RGB value from