Difference between revisions of "Noise:setCellularDistanceFunction"

From GiderosMobile
(Created page with "__NOTOC__ '''<translate>Available since</translate>:''' Gideros 2019.12<br/> '''<translate>Class</translate>:''' Noise<br/> === Description === S...")
 
m (Text replacement - "<source" to "<syntaxhighlight")
Line 6: Line 6:
 
Sets the distance function used in cellular noise calculations.<br/>
 
Sets the distance function used in cellular noise calculations.<br/>
 
Default: '''Euclidean'''
 
Default: '''Euclidean'''
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
Noise:setCellularDistanceFunction(distance)
 
Noise:setCellularDistanceFunction(distance)
 
</source>
 
</source>

Revision as of 14:28, 13 July 2023

Available since: Gideros 2019.12
Class: Noise

Description

Sets the distance function used in cellular noise calculations.
Default: Euclidean <syntaxhighlight lang="lua"> Noise:setCellularDistanceFunction(distance) </source>

Parameters

distance: (constant) distance function