public class ColorBlend
extends java.lang.Object
| Constructor and Description |
|---|
ColorBlend()
Initializes a new instance of the
ColorBlend class. |
ColorBlend(int size)
Initializes a new instance of the
ColorBlend class with specified size. |
| Modifier and Type | Method and Description |
|---|---|
java.awt.Color[] |
getColors()
Gets the array of colors.
|
float[] |
getPositions()
Gets the array of positions along the gradient.
|
void |
setColors(java.awt.Color[] value)
Sets the array of colors.
|
void |
setPositions(float[] value)
Sets the array of positions along the gradient.
|
public ColorBlend()
ColorBlend class.public ColorBlend(int size)
ColorBlend class with specified size.size - The number of colors/positions in the blend.public java.awt.Color[] getColors()
public void setColors(java.awt.Color[] value)
value - An array of Color objects.public float[] getPositions()
public void setPositions(float[] value)
value - An array of float values representing relative positions (from 0 to 1).