This resource allows you to configure and sample a fractal noise space. Here is a brief usage example that configures an OpenSimplexNoise and gets samples at various positions and dimensions:
Generate a noise image in [constant Image.FORMAT_L8] format with the requested [code]width[/code] and [code]height[/code], based on the current noise parameters. If [code]noise_offset[/code] is specified, then the offset value is used as the coordinates of the top-left corner of the generated noise.
</description>
</method>
<methodname="get_noise_1d"qualifiers="const">
<returntype="float"/>
<argumentindex="0"name="x"type="float"/>
<description>
Returns the 1D noise value [code][-1,1][/code] at the given x-coordinate.
[b]Note:[/b] This method actually returns the 2D noise value [code][-1,1][/code] with fixed y-coordinate value 0.0.
</description>
</method>
<methodname="get_noise_2d"qualifiers="const">
<returntype="float"/>
<argumentindex="0"name="x"type="float"/>
<argumentindex="1"name="y"type="float"/>
<description>
Returns the 2D noise value [code][-1,1][/code] at the given position.
</description>
</method>
<methodname="get_noise_2dv"qualifiers="const">
<returntype="float"/>
<argumentindex="0"name="pos"type="Vector2"/>
<description>
Returns the 2D noise value [code][-1,1][/code] at the given position.
</description>
</method>
<methodname="get_noise_3d"qualifiers="const">
<returntype="float"/>
<argumentindex="0"name="x"type="float"/>
<argumentindex="1"name="y"type="float"/>
<argumentindex="2"name="z"type="float"/>
<description>
Returns the 3D noise value [code][-1,1][/code] at the given position.
</description>
</method>
<methodname="get_noise_3dv"qualifiers="const">
<returntype="float"/>
<argumentindex="0"name="pos"type="Vector3"/>
<description>
Returns the 3D noise value [code][-1,1][/code] at the given position.
</description>
</method>
<methodname="get_noise_4d"qualifiers="const">
<returntype="float"/>
<argumentindex="0"name="x"type="float"/>
<argumentindex="1"name="y"type="float"/>
<argumentindex="2"name="z"type="float"/>
<argumentindex="3"name="w"type="float"/>
<description>
Returns the 4D noise value [code][-1,1][/code] at the given position.
Generate a tileable noise image in [constant Image.FORMAT_L8] format, based on the current noise parameters. Generated seamless images are always square ([code]size[/code] × [code]size[/code]).
[b]Note:[/b] Seamless noise has a lower contrast compared to non-seamless noise. This is due to the way noise uses higher dimensions for generating seamless noise.
Number of OpenSimplex noise layers that are sampled to get the fractal noise. Higher values result in more detailed noise but take more time to generate.
Contribution factor of the different octaves. A [code]persistence[/code] value of 1 means all the octaves have the same contribution, a value of 0.5 means each octave contributes half as much as the previous one.