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>")
 
(One intermediate revision by the same user not shown)
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>
+
</syntaxhighlight>
  
 
=== Parameters ===
 
=== Parameters ===

Latest revision as of 14:31, 13 July 2023

Available since: Gideros 2019.12
Class: Noise

Description

Sets the distance function used in cellular noise calculations.
Default: Euclidean

Noise:setCellularDistanceFunction(distance)

Parameters

distance: (constant) distance function