public class GradientColorPalette extends BrushColorPalette
SurfaceMeshRenderableSeries3D
and FreeSurfaceRenderableSeries3D
e.g. to give a height-map at runtime.Constructor and Description |
---|
GradientColorPalette(int[] colors,
float[] stops)
Creates a new instance of
GradientColorPalette class |
GradientColorPalette(int[] colors,
float[] stops,
boolean isStepped)
Creates a new instance of
GradientColorPalette class |
getTexture
public GradientColorPalette(int[] colors, float[] stops)
GradientColorPalette
classcolors
- The array with gradient colorsstops
- The array with gradient stopspublic GradientColorPalette(int[] colors, float[] stops, boolean isStepped)
GradientColorPalette
classcolors
- The array with gradient colorsstops
- The array with gradient stopsisStepped
- The value indicating whether the palette is stepped (true), or linear interpolated (false)