Difference between revisions of "Noise:noise"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' Gideros 2019.12<br/>
'''<translate>Available since</translate>:''' Gideros 2019.12<br/>
+
'''Class:''' [[Noise]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/Noise|Noise]]<br/>
+
 
=== <translate>Description</translate> ===
+
=== Description ===
<translate><br />
+
Gets the 1D/2D/3D noise value.
Get 1D/2D/3D noise value.<br />
+
<syntaxhighlight lang="lua">
<br /></translate>
+
(number) = Noise:noise([x, y, z])
<source lang="lua">
+
</syntaxhighlight>
Noise:noise([x, y, z])
+
 
</source>
+
=== Parameters ===
=== <translate>Parameters</translate> ===
+
'''x''': (number) x value, '''default=0'''<br/>
'''x''': (number, default = 0) <translate>x value</translate> <br/>
+
'''y''': (number) y value, '''default=0'''<br/>
'''y''': (number, default = 0) <translate>y value</translate> <br/>
+
'''z''': (number) z value, '''default=0'''<br/>
'''z''': (number, default = 0) <translate>z value</translate> <br/>
+
 
 +
=== Return values ===
 +
'''Returns''' noise value from -1.0 to 1.0<br/>
  
 
{{Noise}}
 
{{Noise}}

Latest revision as of 14:31, 13 July 2023

Available since: Gideros 2019.12
Class: Noise

Description

Gets the 1D/2D/3D noise value.

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

Parameters

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

Return values

Returns noise value from -1.0 to 1.0