Noise:setNoiseType

From GiderosMobile
Revision as of 14:32, 13 July 2023 by Hgy29 (talk | contribs) (Text replacement - "</source>" to "</syntaxhighlight>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Available since: Gideros 2019.12
Class: Noise

Description


Sets the type of noise returned by noise function.
Default: Noise.SIMPLEX

Noise:setNoiseType(noiseType)

Parameters

noiseType: (number) noise type constant
Availiable values:

  • Noise.VALUE
  • Noise.VALUE_FRACTAL
  • Noise.PERLIN
  • Noise.PERLIN_FRACTAL
  • Noise.SIMPLEX
  • Noise.SIMPLEX_FRACTAL
  • Noise.CELLULAR
  • Noise.WHITE_NOISE
  • Noise.CUBIC
  • Noise.CUBIC_FRACTAL