Difference between revisions of "Noise:setInterp"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
 
(2 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 ===
Changes the interpolation method used to smooth between noise values.<br/>
+
Changes the interpolation method used to smooth between noise values. Default = Noise.QUINTIC.
Possible interpolation methods (lowest to highest quality):
 
*Linear
 
*Hermite
 
*Quintic
 
Used in Value, Perlin Noise and Position Warping.<br/>
 
Default: '''Quintic'''
 
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
 
Noise:setInterp(interpolation)
 
Noise:setInterp(interpolation)
</source>
+
</syntaxhighlight>
 +
 
 +
Possible interpolation methods (lowest to highest quality):
 +
*'''Noise.LINEAR'''
 +
*'''Noise.HERMITE'''
 +
*'''Noise.QUINTIC'''
 +
Used in ''Value'', ''Perlin Noise'' and ''Position Warping''.
  
 
=== Parameters ===
 
=== Parameters ===
 
'''interpolation''': (number) '''integer''' interpolation value<br/>
 
'''interpolation''': (number) '''integer''' interpolation value<br/>
  
{{Noise}}
+
{{FastNoise}}

Latest revision as of 19:53, 29 July 2025