Difference between revisions of "Noise:noise"

From GiderosMobile
(Created page with "__NOTOC__ <languages /> '''<translate>Available since</translate>:''' Gideros 2019.12<br/> '''<translate>Class</translate>:''' Noise<br/> === <tra...")
 
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(5 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.
Reset noise parameters to default.<br />
+
<syntaxhighlight lang="lua">
<br /></translate>
+
(number) = Noise:noise([x, y, z])
<source lang="lua">
+
</syntaxhighlight>
Noise:reset()
+
 
</source>
+
=== Parameters ===
 +
'''x''': (number) x value, '''default=0'''<br/>
 +
'''y''': (number) y value, '''default=0'''<br/>
 +
'''z''': (number) z value, '''default=0'''<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