public class SolidColorBrushPalette extends MeshColorPalette
SurfaceMeshRenderableSeries3D
and FreeSurfaceRenderableSeries3D
e.g. to give a height-map at runtime.Constructor and Description |
---|
SolidColorBrushPalette(int color)
Creates a new instance of
SolidColorBrushPalette class |
Modifier and Type | Method and Description |
---|---|
Texture2D |
getTexture(int width,
int height)
Gets the
Texture2D to apply to the SurfaceMeshRenderableSeries3D and FreeSurfaceRenderableSeries3D , given the size passed in |
public SolidColorBrushPalette(int color)
SolidColorBrushPalette
classcolor
- The color to use by palettepublic Texture2D getTexture(int width, int height)
MeshColorPalette
Texture2D
to apply to the SurfaceMeshRenderableSeries3D
and FreeSurfaceRenderableSeries3D
, given the size passed ingetTexture
in class MeshColorPalette
width
- The width of texture to createheight
- The height of texture to create