Constructor

new()

Variables

normalize:Bool

Keep result in the [-1, 1] range

repeat:Int

Methods

adjustScale(size:Int, scale:Float):Float

gradient(seed:Int, x:Float, y:Float):Float

gradient1D(seed:Int, x:Float):Float

gradient3D(seed:Int, x:Float, y:Float, z:Float):Float

inlineinlineGradient(seed:Int, x:Float, y:Float):Float

maxValue(octaves:Int, persist:Float):Float

@:value({ lacunarity : 2.0, persist : 0.5 })perlin(seed:Int, x:Float, y:Float, octaves:Int, persist:Float = 0.5, lacunarity:Float = 2.0):Float

@:value({ lacunarity : 2.0, persist : 0.5 })perlin1D(seed:Int, x:Float, octaves:Int, persist:Float = 0.5, lacunarity:Float = 2.0):Float

@:value({ lacunarity : 2.0, persist : 0.5, gain : 2.0, offset : 0.5 })ridged(seed:Int, x:Float, y:Float, octaves:Int, offset:Float = 0.5, gain:Float = 2.0, persist:Float = 0.5, lacunarity:Float = 2.0):Float

thresholdValue(p:Float):Float

Converts a desired probability in the [0,1] range into the corresponding perlin value that we must test against for threshold.