Noise:setCellularDistanceFunction: Difference between revisions

From GiderosMobile
Created page with "__NOTOC__ '''<translate>Available since</translate>:''' Gideros 2019.12<br/> '''<translate>Class</translate>:''' Noise<br/> === Description === S..."
 
No edit summary
 
(4 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">
<source 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 15:56, 29 July 2025