Difference between revisions of "Noise:noise2D"

From GiderosMobile
Line 8: Line 8:
 
<br /></translate>
 
<br /></translate>
 
<source lang="lua">
 
<source lang="lua">
(number), (number) = Noise:noise2D(x, y)
+
(number) = Noise:noise2D(x, y)
 
</source>
 
</source>
 
=== <translate>Parameters</translate> ===
 
=== <translate>Parameters</translate> ===

Revision as of 05:00, 9 January 2020


Available since: Gideros 2019.12
Class: Noise

Description


Get 2D noise value.

(number) = Noise:noise2D(x, y)

Parameters

x: (number) x value
y: (number) y value

Return values

Returns noise value from -1.0 to 1.0