Noise:setInterp: Difference between revisions

From GiderosMobile
m Text replacement - "</source>" to "</syntaxhighlight>"
No edit summary
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 = 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)
</syntaxhighlight>
</syntaxhighlight>
Possible interpolation methods (lowest to highest quality):
*'''Linear'''
*'''Hermite'''
*'''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}}

Revision as of 22:16, 28 July 2025