[25:7] extends: FxObj
Wraps FXGL's HeightMapGenerator
(com.almasb.fxgl.procedural.HeightMapGenerator), a
CellGenerator that fills a Grid
HeightMapGenerator (int Width = 0, int Height = 0, double Frequency = -1.0)
Creates a new HeightMapGenerator.
Width is the target grid width in cells.Height is the target grid height in cells.Frequency is the noise frequency (default 10.0 when -1).adopt (object Ajo)
Wraps an existing HeightMapGenerator AussomJavaObject.
getWidth ()
getHeight ()
getFrequency ()
setFrequency (double V)
apply (int X, int Y)
Generates the HeightData cell at (X, Y) by sampling the noise function. Returns a raw HeightData AJO (x, y, height fields).