Difference between revisions of "Noise:setNoiseType"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
Line 8: Line 8:
 
Default: Noise.SIMPLEX<br />
 
Default: Noise.SIMPLEX<br />
 
<br /></translate>
 
<br /></translate>
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
Noise:setNoiseType(noiseType)
 
Noise:setNoiseType(noiseType)
 
</source>
 
</source>

Revision as of 15:30, 13 July 2023


Available since: Gideros 2019.12
Class: Noise

Description


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

<syntaxhighlight lang="lua"> Noise:setNoiseType(noiseType) </source>

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