Difference between revisions of "Noise:noise"

From GiderosMobile
Line 8: Line 8:
 
<br /></translate>
 
<br /></translate>
 
<source lang="lua">
 
<source lang="lua">
Noise:noise([x, y, z])
+
(number) = Noise:noise([x, y, z])
 
</source>
 
</source>
 
=== <translate>Parameters</translate> ===
 
=== <translate>Parameters</translate> ===
Line 14: Line 14:
 
'''y''': (number, default = 0) <translate>y value</translate> <br/>
 
'''y''': (number, default = 0) <translate>y value</translate> <br/>
 
'''z''': (number, default = 0) <translate>z value</translate> <br/>
 
'''z''': (number, default = 0) <translate>z value</translate> <br/>
 +
=== <translate>Return values</translate> ===
 +
'''<translate>Returns</translate>''' <translate>noise value from -1.0 to 1.0</translate><br/>
  
 
{{Noise}}
 
{{Noise}}

Revision as of 05:00, 9 January 2020


Available since: Gideros 2019.12
Class: Noise

Description


Get 1D/2D/3D noise value.

(number) = Noise:noise([x, y, z])

Parameters

x: (number, default = 0) x value
y: (number, default = 0) y value
z: (number, default = 0) z value

Return values

Returns noise value from -1.0 to 1.0