public class Gradient
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Gradient.GradientDirection
The Enum GradientDirection.
|
Constructor and Description |
---|
Gradient(com.jme3.math.ColorRGBA from,
com.jme3.math.ColorRGBA to,
Gradient.GradientDirection direction)
Instantiates a new gradient.
|
Modifier and Type | Method and Description |
---|---|
Gradient.GradientDirection |
getDirection()
Gets the direction.
|
com.jme3.math.ColorRGBA |
getFrom()
Gets the from.
|
com.jme3.math.ColorRGBA |
getTo()
Gets the to.
|
void |
setDirection(Gradient.GradientDirection direction)
Sets the direction.
|
void |
setFrom(com.jme3.math.ColorRGBA from)
Sets the from.
|
void |
setTo(com.jme3.math.ColorRGBA to)
Sets the to.
|
public Gradient(com.jme3.math.ColorRGBA from, com.jme3.math.ColorRGBA to, Gradient.GradientDirection direction)
from
- the fromto
- the todirection
- the directionpublic Gradient.GradientDirection getDirection()
public com.jme3.math.ColorRGBA getFrom()
public com.jme3.math.ColorRGBA getTo()
public void setDirection(Gradient.GradientDirection direction)
direction
- the new directionpublic void setFrom(com.jme3.math.ColorRGBA from)
from
- the new frompublic void setTo(com.jme3.math.ColorRGBA to)
to
- the new to