Difference between revisions of "Noise:setInterp"

From GiderosMobile
(Created page with "__NOTOC__ '''<translate>Available since</translate>:''' Gideros 2019.12<br/> '''<translate>Class</translate>:''' Noise<br/> === Description === C...")
 
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(One intermediate revision by the same user not shown)
Line 11: Line 11:
 
Used in Value, Perlin Noise and Position Warping.<br/>
 
Used in Value, Perlin Noise and Position Warping.<br/>
 
Default: '''Quintic'''
 
Default: '''Quintic'''
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
Noise:setInterp(interpolation)
 
Noise:setInterp(interpolation)
</source>
+
</syntaxhighlight>
  
 
=== Parameters ===
 
=== Parameters ===

Latest revision as of 15:31, 13 July 2023

Available since: Gideros 2019.12
Class: Noise

Description

Changes the interpolation method used to smooth between noise values.
Possible interpolation methods (lowest to highest quality):

  • Linear
  • Hermite
  • Quintic

Used in Value, Perlin Noise and Position Warping.
Default: Quintic

Noise:setInterp(interpolation)

Parameters

interpolation: (number) integer interpolation value