Difference between revisions of "Noise:setCellularDistance2Indices"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
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 2 distance indices used for distance2 return types.<br/>
+
Sets the 2 distance indices used for distance2 return types. Default = 0, 1.
Default: '''0, 1'''<br/>
 
'''Note''': index0 should be lower than index1<br/>
 
'''Note''': Both indices must be >= 0, index1 must be < 4
 
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
 
Noise:setCellularDistance2Indices(cellularDistanceIndex0, cellularDistanceIndex1)
 
Noise:setCellularDistance2Indices(cellularDistanceIndex0, cellularDistanceIndex1)
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
 +
'''Note''': index0 should be lower than index1<br/>
 +
'''Note''': both indices must be >= 0, index1 must be < 4
  
 
=== Parameters ===
 
=== Parameters ===
Line 16: Line 16:
 
'''cellularDistanceIndex1''': (number) '''integer''' distance indice 1<br/>
 
'''cellularDistanceIndex1''': (number) '''integer''' distance indice 1<br/>
  
{{Noise}}
+
{{FastNoise}}

Latest revision as of 00:00, 29 July 2025