Difference between revisions of "Noise:setNoiseType"

From GiderosMobile
(Created page with "__NOTOC__ <languages /> '''<translate>Available since</translate>:''' Gideros 2019.12<br/> '''<translate>Class</translate>:''' Noise<br/> === <tra...")
 
Line 5: Line 5:
 
=== <translate>Description</translate> ===
 
=== <translate>Description</translate> ===
 
<translate><br />
 
<translate><br />
Sets the type of noise returned by noise function<br />
+
Sets the type of noise returned by noise function
 +
Default: Noise.SIMPLEX<br />
 
<br /></translate>
 
<br /></translate>
 
<source lang="lua">
 
<source lang="lua">

Revision as of 06:08, 9 January 2020


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