|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttoxi.color.ColorGradient
public class ColorGradient

This class can be used to calculate multi-color gradients with colors positioned along an imaginary axis.
| Constructor Summary | |
|---|---|
ColorGradient()
Constructs a new empty gradient. |
|
| Method Summary | |
|---|---|
void |
addColorAt(float p,
ReadonlyTColor c)
Adds a new color at specified position. |
ColorList |
calcGradient()
|
ColorList |
calcGradient(float pos,
int width)
Calculates the gradient from specified position. |
java.util.List<toxi.color.ColorGradient.GradPoint> |
getGradientPoints()
|
toxi.math.InterpolateStrategy |
getInterpolator()
|
float |
getMaxDither()
|
void |
setInterpolator(toxi.math.InterpolateStrategy interpolator)
|
void |
setMaxDither(float maxDither)
Sets the maximum dither amount. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ColorGradient()
| Method Detail |
|---|
public void addColorAt(float p,
ReadonlyTColor c)
p - c - public ColorList calcGradient()
public ColorList calcGradient(float pos,
int width)
pos - width -
public java.util.List<toxi.color.ColorGradient.GradPoint> getGradientPoints()
public toxi.math.InterpolateStrategy getInterpolator()
public float getMaxDither()
public void setInterpolator(toxi.math.InterpolateStrategy interpolator)
interpolator - the interpolator to setpublic void setMaxDither(float maxDither)
maxDither -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||