Difference between revisions of "Noise:setCellularDistanceFunction"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''<translate>Available since</translate>:''' Gideros 2019.12<br/>
+
'''Available since:''' Gideros 2019.12<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/Noise|Noise]]<br/>
+
'''Class:''' [[FastNoise]]<br/>
  
 
=== Description ===
 
=== Description ===
Sets the distance function used in cellular noise calculations.<br/>
+
Sets the distance function used in cellular noise calculations. Default = Euclidean.
Default: '''Euclidean'''
 
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
 
Noise:setCellularDistanceFunction(distance)
 
Noise:setCellularDistanceFunction(distance)
</source>
+
</syntaxhighlight>
 +
 
 +
Possible cellular distance functions:
 +
*'''Noise.EUCLIDEAN'''
 +
*'''Noise.MANHATTAN'''
 +
*'''Noise.NATURAL'''
  
 
=== Parameters ===
 
=== Parameters ===
 
'''distance''': (constant) distance function<br/>
 
'''distance''': (constant) distance function<br/>
  
{{Noise}}
+
{{FastNoise}}

Latest revision as of 17:56, 29 July 2025