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") |
||
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''' | ||
− | < | + | <syntaxhighlight lang="lua"> |
Noise:setInterp(interpolation) | Noise:setInterp(interpolation) | ||
</source> | </source> |
Revision as of 15:30, 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
<syntaxhighlight lang="lua">
Noise:setInterp(interpolation)
</source>
Parameters
interpolation: (number) integer interpolation value