class_fastnoiselite.rst 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/4.2/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/4.2/modules/noise/doc_classes/FastNoiseLite.xml.
  6. .. _class_FastNoiseLite:
  7. FastNoiseLite
  8. =============
  9. **Inherits:** :ref:`Noise<class_Noise>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. Generates noise using the FastNoiseLite library.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. This class generates noise using the FastNoiseLite library, which is a collection of several noise algorithms including Cellular, Perlin, Value, and more.
  15. Most generated noise values are in the range of ``[-1, 1]``, but not always. Some of the cellular noise algorithms return results above ``1``.
  16. .. rst-class:: classref-reftable-group
  17. Properties
  18. ----------
  19. .. table::
  20. :widths: auto
  21. +------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+----------------------+
  22. | :ref:`CellularDistanceFunction<enum_FastNoiseLite_CellularDistanceFunction>` | :ref:`cellular_distance_function<class_FastNoiseLite_property_cellular_distance_function>` | ``0`` |
  23. +------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+----------------------+
  24. | :ref:`float<class_float>` | :ref:`cellular_jitter<class_FastNoiseLite_property_cellular_jitter>` | ``1.0`` |
  25. +------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+----------------------+
  26. | :ref:`CellularReturnType<enum_FastNoiseLite_CellularReturnType>` | :ref:`cellular_return_type<class_FastNoiseLite_property_cellular_return_type>` | ``1`` |
  27. +------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+----------------------+
  28. | :ref:`float<class_float>` | :ref:`domain_warp_amplitude<class_FastNoiseLite_property_domain_warp_amplitude>` | ``30.0`` |
  29. +------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+----------------------+
  30. | :ref:`bool<class_bool>` | :ref:`domain_warp_enabled<class_FastNoiseLite_property_domain_warp_enabled>` | ``false`` |
  31. +------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+----------------------+
  32. | :ref:`float<class_float>` | :ref:`domain_warp_fractal_gain<class_FastNoiseLite_property_domain_warp_fractal_gain>` | ``0.5`` |
  33. +------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+----------------------+
  34. | :ref:`float<class_float>` | :ref:`domain_warp_fractal_lacunarity<class_FastNoiseLite_property_domain_warp_fractal_lacunarity>` | ``6.0`` |
  35. +------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+----------------------+
  36. | :ref:`int<class_int>` | :ref:`domain_warp_fractal_octaves<class_FastNoiseLite_property_domain_warp_fractal_octaves>` | ``5`` |
  37. +------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+----------------------+
  38. | :ref:`DomainWarpFractalType<enum_FastNoiseLite_DomainWarpFractalType>` | :ref:`domain_warp_fractal_type<class_FastNoiseLite_property_domain_warp_fractal_type>` | ``1`` |
  39. +------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+----------------------+
  40. | :ref:`float<class_float>` | :ref:`domain_warp_frequency<class_FastNoiseLite_property_domain_warp_frequency>` | ``0.05`` |
  41. +------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+----------------------+
  42. | :ref:`DomainWarpType<enum_FastNoiseLite_DomainWarpType>` | :ref:`domain_warp_type<class_FastNoiseLite_property_domain_warp_type>` | ``0`` |
  43. +------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+----------------------+
  44. | :ref:`float<class_float>` | :ref:`fractal_gain<class_FastNoiseLite_property_fractal_gain>` | ``0.5`` |
  45. +------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+----------------------+
  46. | :ref:`float<class_float>` | :ref:`fractal_lacunarity<class_FastNoiseLite_property_fractal_lacunarity>` | ``2.0`` |
  47. +------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+----------------------+
  48. | :ref:`int<class_int>` | :ref:`fractal_octaves<class_FastNoiseLite_property_fractal_octaves>` | ``5`` |
  49. +------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+----------------------+
  50. | :ref:`float<class_float>` | :ref:`fractal_ping_pong_strength<class_FastNoiseLite_property_fractal_ping_pong_strength>` | ``2.0`` |
  51. +------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+----------------------+
  52. | :ref:`FractalType<enum_FastNoiseLite_FractalType>` | :ref:`fractal_type<class_FastNoiseLite_property_fractal_type>` | ``1`` |
  53. +------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+----------------------+
  54. | :ref:`float<class_float>` | :ref:`fractal_weighted_strength<class_FastNoiseLite_property_fractal_weighted_strength>` | ``0.0`` |
  55. +------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+----------------------+
  56. | :ref:`float<class_float>` | :ref:`frequency<class_FastNoiseLite_property_frequency>` | ``0.01`` |
  57. +------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+----------------------+
  58. | :ref:`NoiseType<enum_FastNoiseLite_NoiseType>` | :ref:`noise_type<class_FastNoiseLite_property_noise_type>` | ``1`` |
  59. +------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+----------------------+
  60. | :ref:`Vector3<class_Vector3>` | :ref:`offset<class_FastNoiseLite_property_offset>` | ``Vector3(0, 0, 0)`` |
  61. +------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+----------------------+
  62. | :ref:`int<class_int>` | :ref:`seed<class_FastNoiseLite_property_seed>` | ``0`` |
  63. +------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+----------------------+
  64. .. rst-class:: classref-section-separator
  65. ----
  66. .. rst-class:: classref-descriptions-group
  67. Enumerations
  68. ------------
  69. .. _enum_FastNoiseLite_NoiseType:
  70. .. rst-class:: classref-enumeration
  71. enum **NoiseType**:
  72. .. _class_FastNoiseLite_constant_TYPE_VALUE:
  73. .. rst-class:: classref-enumeration-constant
  74. :ref:`NoiseType<enum_FastNoiseLite_NoiseType>` **TYPE_VALUE** = ``5``
  75. A lattice of points are assigned random values then interpolated based on neighboring values.
  76. .. _class_FastNoiseLite_constant_TYPE_VALUE_CUBIC:
  77. .. rst-class:: classref-enumeration-constant
  78. :ref:`NoiseType<enum_FastNoiseLite_NoiseType>` **TYPE_VALUE_CUBIC** = ``4``
  79. Similar to Value noise, but slower. Has more variance in peaks and valleys.
  80. Cubic noise can be used to avoid certain artifacts when using value noise to create a bumpmap. In general, you should always use this mode if the value noise is being used for a heightmap or bumpmap.
  81. .. _class_FastNoiseLite_constant_TYPE_PERLIN:
  82. .. rst-class:: classref-enumeration-constant
  83. :ref:`NoiseType<enum_FastNoiseLite_NoiseType>` **TYPE_PERLIN** = ``3``
  84. A lattice of random gradients. Their dot products are interpolated to obtain values in between the lattices.
  85. .. _class_FastNoiseLite_constant_TYPE_CELLULAR:
  86. .. rst-class:: classref-enumeration-constant
  87. :ref:`NoiseType<enum_FastNoiseLite_NoiseType>` **TYPE_CELLULAR** = ``2``
  88. Cellular includes both Worley noise and Voronoi diagrams which creates various regions of the same value.
  89. .. _class_FastNoiseLite_constant_TYPE_SIMPLEX:
  90. .. rst-class:: classref-enumeration-constant
  91. :ref:`NoiseType<enum_FastNoiseLite_NoiseType>` **TYPE_SIMPLEX** = ``0``
  92. As opposed to :ref:`TYPE_PERLIN<class_FastNoiseLite_constant_TYPE_PERLIN>`, gradients exist in a simplex lattice rather than a grid lattice, avoiding directional artifacts.
  93. .. _class_FastNoiseLite_constant_TYPE_SIMPLEX_SMOOTH:
  94. .. rst-class:: classref-enumeration-constant
  95. :ref:`NoiseType<enum_FastNoiseLite_NoiseType>` **TYPE_SIMPLEX_SMOOTH** = ``1``
  96. Modified, higher quality version of :ref:`TYPE_SIMPLEX<class_FastNoiseLite_constant_TYPE_SIMPLEX>`, but slower.
  97. .. rst-class:: classref-item-separator
  98. ----
  99. .. _enum_FastNoiseLite_FractalType:
  100. .. rst-class:: classref-enumeration
  101. enum **FractalType**:
  102. .. _class_FastNoiseLite_constant_FRACTAL_NONE:
  103. .. rst-class:: classref-enumeration-constant
  104. :ref:`FractalType<enum_FastNoiseLite_FractalType>` **FRACTAL_NONE** = ``0``
  105. No fractal noise.
  106. .. _class_FastNoiseLite_constant_FRACTAL_FBM:
  107. .. rst-class:: classref-enumeration-constant
  108. :ref:`FractalType<enum_FastNoiseLite_FractalType>` **FRACTAL_FBM** = ``1``
  109. Method using Fractional Brownian Motion to combine octaves into a fractal.
  110. .. _class_FastNoiseLite_constant_FRACTAL_RIDGED:
  111. .. rst-class:: classref-enumeration-constant
  112. :ref:`FractalType<enum_FastNoiseLite_FractalType>` **FRACTAL_RIDGED** = ``2``
  113. Method of combining octaves into a fractal resulting in a "ridged" look.
  114. .. _class_FastNoiseLite_constant_FRACTAL_PING_PONG:
  115. .. rst-class:: classref-enumeration-constant
  116. :ref:`FractalType<enum_FastNoiseLite_FractalType>` **FRACTAL_PING_PONG** = ``3``
  117. Method of combining octaves into a fractal with a ping pong effect.
  118. .. rst-class:: classref-item-separator
  119. ----
  120. .. _enum_FastNoiseLite_CellularDistanceFunction:
  121. .. rst-class:: classref-enumeration
  122. enum **CellularDistanceFunction**:
  123. .. _class_FastNoiseLite_constant_DISTANCE_EUCLIDEAN:
  124. .. rst-class:: classref-enumeration-constant
  125. :ref:`CellularDistanceFunction<enum_FastNoiseLite_CellularDistanceFunction>` **DISTANCE_EUCLIDEAN** = ``0``
  126. Euclidean distance to the nearest point.
  127. .. _class_FastNoiseLite_constant_DISTANCE_EUCLIDEAN_SQUARED:
  128. .. rst-class:: classref-enumeration-constant
  129. :ref:`CellularDistanceFunction<enum_FastNoiseLite_CellularDistanceFunction>` **DISTANCE_EUCLIDEAN_SQUARED** = ``1``
  130. Squared Euclidean distance to the nearest point.
  131. .. _class_FastNoiseLite_constant_DISTANCE_MANHATTAN:
  132. .. rst-class:: classref-enumeration-constant
  133. :ref:`CellularDistanceFunction<enum_FastNoiseLite_CellularDistanceFunction>` **DISTANCE_MANHATTAN** = ``2``
  134. Manhattan distance (taxicab metric) to the nearest point.
  135. .. _class_FastNoiseLite_constant_DISTANCE_HYBRID:
  136. .. rst-class:: classref-enumeration-constant
  137. :ref:`CellularDistanceFunction<enum_FastNoiseLite_CellularDistanceFunction>` **DISTANCE_HYBRID** = ``3``
  138. Blend of :ref:`DISTANCE_EUCLIDEAN<class_FastNoiseLite_constant_DISTANCE_EUCLIDEAN>` and :ref:`DISTANCE_MANHATTAN<class_FastNoiseLite_constant_DISTANCE_MANHATTAN>` to give curved cell boundaries
  139. .. rst-class:: classref-item-separator
  140. ----
  141. .. _enum_FastNoiseLite_CellularReturnType:
  142. .. rst-class:: classref-enumeration
  143. enum **CellularReturnType**:
  144. .. _class_FastNoiseLite_constant_RETURN_CELL_VALUE:
  145. .. rst-class:: classref-enumeration-constant
  146. :ref:`CellularReturnType<enum_FastNoiseLite_CellularReturnType>` **RETURN_CELL_VALUE** = ``0``
  147. The cellular distance function will return the same value for all points within a cell.
  148. .. _class_FastNoiseLite_constant_RETURN_DISTANCE:
  149. .. rst-class:: classref-enumeration-constant
  150. :ref:`CellularReturnType<enum_FastNoiseLite_CellularReturnType>` **RETURN_DISTANCE** = ``1``
  151. The cellular distance function will return a value determined by the distance to the nearest point.
  152. .. _class_FastNoiseLite_constant_RETURN_DISTANCE2:
  153. .. rst-class:: classref-enumeration-constant
  154. :ref:`CellularReturnType<enum_FastNoiseLite_CellularReturnType>` **RETURN_DISTANCE2** = ``2``
  155. The cellular distance function returns the distance to the second-nearest point.
  156. .. _class_FastNoiseLite_constant_RETURN_DISTANCE2_ADD:
  157. .. rst-class:: classref-enumeration-constant
  158. :ref:`CellularReturnType<enum_FastNoiseLite_CellularReturnType>` **RETURN_DISTANCE2_ADD** = ``3``
  159. The distance to the nearest point is added to the distance to the second-nearest point.
  160. .. _class_FastNoiseLite_constant_RETURN_DISTANCE2_SUB:
  161. .. rst-class:: classref-enumeration-constant
  162. :ref:`CellularReturnType<enum_FastNoiseLite_CellularReturnType>` **RETURN_DISTANCE2_SUB** = ``4``
  163. The distance to the nearest point is subtracted from the distance to the second-nearest point.
  164. .. _class_FastNoiseLite_constant_RETURN_DISTANCE2_MUL:
  165. .. rst-class:: classref-enumeration-constant
  166. :ref:`CellularReturnType<enum_FastNoiseLite_CellularReturnType>` **RETURN_DISTANCE2_MUL** = ``5``
  167. The distance to the nearest point is multiplied with the distance to the second-nearest point.
  168. .. _class_FastNoiseLite_constant_RETURN_DISTANCE2_DIV:
  169. .. rst-class:: classref-enumeration-constant
  170. :ref:`CellularReturnType<enum_FastNoiseLite_CellularReturnType>` **RETURN_DISTANCE2_DIV** = ``6``
  171. The distance to the nearest point is divided by the distance to the second-nearest point.
  172. .. rst-class:: classref-item-separator
  173. ----
  174. .. _enum_FastNoiseLite_DomainWarpType:
  175. .. rst-class:: classref-enumeration
  176. enum **DomainWarpType**:
  177. .. _class_FastNoiseLite_constant_DOMAIN_WARP_SIMPLEX:
  178. .. rst-class:: classref-enumeration-constant
  179. :ref:`DomainWarpType<enum_FastNoiseLite_DomainWarpType>` **DOMAIN_WARP_SIMPLEX** = ``0``
  180. The domain is warped using the simplex noise algorithm.
  181. .. _class_FastNoiseLite_constant_DOMAIN_WARP_SIMPLEX_REDUCED:
  182. .. rst-class:: classref-enumeration-constant
  183. :ref:`DomainWarpType<enum_FastNoiseLite_DomainWarpType>` **DOMAIN_WARP_SIMPLEX_REDUCED** = ``1``
  184. The domain is warped using a simplified version of the simplex noise algorithm.
  185. .. _class_FastNoiseLite_constant_DOMAIN_WARP_BASIC_GRID:
  186. .. rst-class:: classref-enumeration-constant
  187. :ref:`DomainWarpType<enum_FastNoiseLite_DomainWarpType>` **DOMAIN_WARP_BASIC_GRID** = ``2``
  188. The domain is warped using a simple noise grid (not as smooth as the other methods, but more performant).
  189. .. rst-class:: classref-item-separator
  190. ----
  191. .. _enum_FastNoiseLite_DomainWarpFractalType:
  192. .. rst-class:: classref-enumeration
  193. enum **DomainWarpFractalType**:
  194. .. _class_FastNoiseLite_constant_DOMAIN_WARP_FRACTAL_NONE:
  195. .. rst-class:: classref-enumeration-constant
  196. :ref:`DomainWarpFractalType<enum_FastNoiseLite_DomainWarpFractalType>` **DOMAIN_WARP_FRACTAL_NONE** = ``0``
  197. No fractal noise for warping the space.
  198. .. _class_FastNoiseLite_constant_DOMAIN_WARP_FRACTAL_PROGRESSIVE:
  199. .. rst-class:: classref-enumeration-constant
  200. :ref:`DomainWarpFractalType<enum_FastNoiseLite_DomainWarpFractalType>` **DOMAIN_WARP_FRACTAL_PROGRESSIVE** = ``1``
  201. Warping the space progressively, octave for octave, resulting in a more "liquified" distortion.
  202. .. _class_FastNoiseLite_constant_DOMAIN_WARP_FRACTAL_INDEPENDENT:
  203. .. rst-class:: classref-enumeration-constant
  204. :ref:`DomainWarpFractalType<enum_FastNoiseLite_DomainWarpFractalType>` **DOMAIN_WARP_FRACTAL_INDEPENDENT** = ``2``
  205. Warping the space independently for each octave, resulting in a more chaotic distortion.
  206. .. rst-class:: classref-section-separator
  207. ----
  208. .. rst-class:: classref-descriptions-group
  209. Property Descriptions
  210. ---------------------
  211. .. _class_FastNoiseLite_property_cellular_distance_function:
  212. .. rst-class:: classref-property
  213. :ref:`CellularDistanceFunction<enum_FastNoiseLite_CellularDistanceFunction>` **cellular_distance_function** = ``0``
  214. .. rst-class:: classref-property-setget
  215. - void **set_cellular_distance_function** **(** :ref:`CellularDistanceFunction<enum_FastNoiseLite_CellularDistanceFunction>` value **)**
  216. - :ref:`CellularDistanceFunction<enum_FastNoiseLite_CellularDistanceFunction>` **get_cellular_distance_function** **(** **)**
  217. Determines how the distance to the nearest/second-nearest point is computed. See :ref:`CellularDistanceFunction<enum_FastNoiseLite_CellularDistanceFunction>` for options.
  218. .. rst-class:: classref-item-separator
  219. ----
  220. .. _class_FastNoiseLite_property_cellular_jitter:
  221. .. rst-class:: classref-property
  222. :ref:`float<class_float>` **cellular_jitter** = ``1.0``
  223. .. rst-class:: classref-property-setget
  224. - void **set_cellular_jitter** **(** :ref:`float<class_float>` value **)**
  225. - :ref:`float<class_float>` **get_cellular_jitter** **(** **)**
  226. Maximum distance a point can move off of its grid position. Set to ``0`` for an even grid.
  227. .. rst-class:: classref-item-separator
  228. ----
  229. .. _class_FastNoiseLite_property_cellular_return_type:
  230. .. rst-class:: classref-property
  231. :ref:`CellularReturnType<enum_FastNoiseLite_CellularReturnType>` **cellular_return_type** = ``1``
  232. .. rst-class:: classref-property-setget
  233. - void **set_cellular_return_type** **(** :ref:`CellularReturnType<enum_FastNoiseLite_CellularReturnType>` value **)**
  234. - :ref:`CellularReturnType<enum_FastNoiseLite_CellularReturnType>` **get_cellular_return_type** **(** **)**
  235. Return type from cellular noise calculations. See :ref:`CellularReturnType<enum_FastNoiseLite_CellularReturnType>`.
  236. .. rst-class:: classref-item-separator
  237. ----
  238. .. _class_FastNoiseLite_property_domain_warp_amplitude:
  239. .. rst-class:: classref-property
  240. :ref:`float<class_float>` **domain_warp_amplitude** = ``30.0``
  241. .. rst-class:: classref-property-setget
  242. - void **set_domain_warp_amplitude** **(** :ref:`float<class_float>` value **)**
  243. - :ref:`float<class_float>` **get_domain_warp_amplitude** **(** **)**
  244. Sets the maximum warp distance from the origin.
  245. .. rst-class:: classref-item-separator
  246. ----
  247. .. _class_FastNoiseLite_property_domain_warp_enabled:
  248. .. rst-class:: classref-property
  249. :ref:`bool<class_bool>` **domain_warp_enabled** = ``false``
  250. .. rst-class:: classref-property-setget
  251. - void **set_domain_warp_enabled** **(** :ref:`bool<class_bool>` value **)**
  252. - :ref:`bool<class_bool>` **is_domain_warp_enabled** **(** **)**
  253. If enabled, another FastNoiseLite instance is used to warp the space, resulting in a distortion of the noise.
  254. .. rst-class:: classref-item-separator
  255. ----
  256. .. _class_FastNoiseLite_property_domain_warp_fractal_gain:
  257. .. rst-class:: classref-property
  258. :ref:`float<class_float>` **domain_warp_fractal_gain** = ``0.5``
  259. .. rst-class:: classref-property-setget
  260. - void **set_domain_warp_fractal_gain** **(** :ref:`float<class_float>` value **)**
  261. - :ref:`float<class_float>` **get_domain_warp_fractal_gain** **(** **)**
  262. Determines the strength of each subsequent layer of the noise which is used to warp the space.
  263. A low value places more emphasis on the lower frequency base layers, while a high value puts more emphasis on the higher frequency layers.
  264. .. rst-class:: classref-item-separator
  265. ----
  266. .. _class_FastNoiseLite_property_domain_warp_fractal_lacunarity:
  267. .. rst-class:: classref-property
  268. :ref:`float<class_float>` **domain_warp_fractal_lacunarity** = ``6.0``
  269. .. rst-class:: classref-property-setget
  270. - void **set_domain_warp_fractal_lacunarity** **(** :ref:`float<class_float>` value **)**
  271. - :ref:`float<class_float>` **get_domain_warp_fractal_lacunarity** **(** **)**
  272. Octave lacunarity of the fractal noise which warps the space. Increasing this value results in higher octaves producing noise with finer details and a rougher appearance.
  273. .. rst-class:: classref-item-separator
  274. ----
  275. .. _class_FastNoiseLite_property_domain_warp_fractal_octaves:
  276. .. rst-class:: classref-property
  277. :ref:`int<class_int>` **domain_warp_fractal_octaves** = ``5``
  278. .. rst-class:: classref-property-setget
  279. - void **set_domain_warp_fractal_octaves** **(** :ref:`int<class_int>` value **)**
  280. - :ref:`int<class_int>` **get_domain_warp_fractal_octaves** **(** **)**
  281. The number of noise layers that are sampled to get the final value for the fractal noise which warps the space.
  282. .. rst-class:: classref-item-separator
  283. ----
  284. .. _class_FastNoiseLite_property_domain_warp_fractal_type:
  285. .. rst-class:: classref-property
  286. :ref:`DomainWarpFractalType<enum_FastNoiseLite_DomainWarpFractalType>` **domain_warp_fractal_type** = ``1``
  287. .. rst-class:: classref-property-setget
  288. - void **set_domain_warp_fractal_type** **(** :ref:`DomainWarpFractalType<enum_FastNoiseLite_DomainWarpFractalType>` value **)**
  289. - :ref:`DomainWarpFractalType<enum_FastNoiseLite_DomainWarpFractalType>` **get_domain_warp_fractal_type** **(** **)**
  290. The method for combining octaves into a fractal which is used to warp the space. See :ref:`DomainWarpFractalType<enum_FastNoiseLite_DomainWarpFractalType>`.
  291. .. rst-class:: classref-item-separator
  292. ----
  293. .. _class_FastNoiseLite_property_domain_warp_frequency:
  294. .. rst-class:: classref-property
  295. :ref:`float<class_float>` **domain_warp_frequency** = ``0.05``
  296. .. rst-class:: classref-property-setget
  297. - void **set_domain_warp_frequency** **(** :ref:`float<class_float>` value **)**
  298. - :ref:`float<class_float>` **get_domain_warp_frequency** **(** **)**
  299. Frequency of the noise which warps the space. Low frequency results in smooth noise while high frequency results in rougher, more granular noise.
  300. .. rst-class:: classref-item-separator
  301. ----
  302. .. _class_FastNoiseLite_property_domain_warp_type:
  303. .. rst-class:: classref-property
  304. :ref:`DomainWarpType<enum_FastNoiseLite_DomainWarpType>` **domain_warp_type** = ``0``
  305. .. rst-class:: classref-property-setget
  306. - void **set_domain_warp_type** **(** :ref:`DomainWarpType<enum_FastNoiseLite_DomainWarpType>` value **)**
  307. - :ref:`DomainWarpType<enum_FastNoiseLite_DomainWarpType>` **get_domain_warp_type** **(** **)**
  308. Sets the warp algorithm. See :ref:`DomainWarpType<enum_FastNoiseLite_DomainWarpType>`.
  309. .. rst-class:: classref-item-separator
  310. ----
  311. .. _class_FastNoiseLite_property_fractal_gain:
  312. .. rst-class:: classref-property
  313. :ref:`float<class_float>` **fractal_gain** = ``0.5``
  314. .. rst-class:: classref-property-setget
  315. - void **set_fractal_gain** **(** :ref:`float<class_float>` value **)**
  316. - :ref:`float<class_float>` **get_fractal_gain** **(** **)**
  317. Determines the strength of each subsequent layer of noise in fractal noise.
  318. A low value places more emphasis on the lower frequency base layers, while a high value puts more emphasis on the higher frequency layers.
  319. .. rst-class:: classref-item-separator
  320. ----
  321. .. _class_FastNoiseLite_property_fractal_lacunarity:
  322. .. rst-class:: classref-property
  323. :ref:`float<class_float>` **fractal_lacunarity** = ``2.0``
  324. .. rst-class:: classref-property-setget
  325. - void **set_fractal_lacunarity** **(** :ref:`float<class_float>` value **)**
  326. - :ref:`float<class_float>` **get_fractal_lacunarity** **(** **)**
  327. Frequency multiplier between subsequent octaves. Increasing this value results in higher octaves producing noise with finer details and a rougher appearance.
  328. .. rst-class:: classref-item-separator
  329. ----
  330. .. _class_FastNoiseLite_property_fractal_octaves:
  331. .. rst-class:: classref-property
  332. :ref:`int<class_int>` **fractal_octaves** = ``5``
  333. .. rst-class:: classref-property-setget
  334. - void **set_fractal_octaves** **(** :ref:`int<class_int>` value **)**
  335. - :ref:`int<class_int>` **get_fractal_octaves** **(** **)**
  336. The number of noise layers that are sampled to get the final value for fractal noise types.
  337. .. rst-class:: classref-item-separator
  338. ----
  339. .. _class_FastNoiseLite_property_fractal_ping_pong_strength:
  340. .. rst-class:: classref-property
  341. :ref:`float<class_float>` **fractal_ping_pong_strength** = ``2.0``
  342. .. rst-class:: classref-property-setget
  343. - void **set_fractal_ping_pong_strength** **(** :ref:`float<class_float>` value **)**
  344. - :ref:`float<class_float>` **get_fractal_ping_pong_strength** **(** **)**
  345. Sets the strength of the fractal ping pong type.
  346. .. rst-class:: classref-item-separator
  347. ----
  348. .. _class_FastNoiseLite_property_fractal_type:
  349. .. rst-class:: classref-property
  350. :ref:`FractalType<enum_FastNoiseLite_FractalType>` **fractal_type** = ``1``
  351. .. rst-class:: classref-property-setget
  352. - void **set_fractal_type** **(** :ref:`FractalType<enum_FastNoiseLite_FractalType>` value **)**
  353. - :ref:`FractalType<enum_FastNoiseLite_FractalType>` **get_fractal_type** **(** **)**
  354. The method for combining octaves into a fractal. See :ref:`FractalType<enum_FastNoiseLite_FractalType>`.
  355. .. rst-class:: classref-item-separator
  356. ----
  357. .. _class_FastNoiseLite_property_fractal_weighted_strength:
  358. .. rst-class:: classref-property
  359. :ref:`float<class_float>` **fractal_weighted_strength** = ``0.0``
  360. .. rst-class:: classref-property-setget
  361. - void **set_fractal_weighted_strength** **(** :ref:`float<class_float>` value **)**
  362. - :ref:`float<class_float>` **get_fractal_weighted_strength** **(** **)**
  363. Higher weighting means higher octaves have less impact if lower octaves have a large impact.
  364. .. rst-class:: classref-item-separator
  365. ----
  366. .. _class_FastNoiseLite_property_frequency:
  367. .. rst-class:: classref-property
  368. :ref:`float<class_float>` **frequency** = ``0.01``
  369. .. rst-class:: classref-property-setget
  370. - void **set_frequency** **(** :ref:`float<class_float>` value **)**
  371. - :ref:`float<class_float>` **get_frequency** **(** **)**
  372. The frequency for all noise types. Low frequency results in smooth noise while high frequency results in rougher, more granular noise.
  373. .. rst-class:: classref-item-separator
  374. ----
  375. .. _class_FastNoiseLite_property_noise_type:
  376. .. rst-class:: classref-property
  377. :ref:`NoiseType<enum_FastNoiseLite_NoiseType>` **noise_type** = ``1``
  378. .. rst-class:: classref-property-setget
  379. - void **set_noise_type** **(** :ref:`NoiseType<enum_FastNoiseLite_NoiseType>` value **)**
  380. - :ref:`NoiseType<enum_FastNoiseLite_NoiseType>` **get_noise_type** **(** **)**
  381. The noise algorithm used. See :ref:`NoiseType<enum_FastNoiseLite_NoiseType>`.
  382. .. rst-class:: classref-item-separator
  383. ----
  384. .. _class_FastNoiseLite_property_offset:
  385. .. rst-class:: classref-property
  386. :ref:`Vector3<class_Vector3>` **offset** = ``Vector3(0, 0, 0)``
  387. .. rst-class:: classref-property-setget
  388. - void **set_offset** **(** :ref:`Vector3<class_Vector3>` value **)**
  389. - :ref:`Vector3<class_Vector3>` **get_offset** **(** **)**
  390. Translate the noise input coordinates by the given :ref:`Vector3<class_Vector3>`.
  391. .. rst-class:: classref-item-separator
  392. ----
  393. .. _class_FastNoiseLite_property_seed:
  394. .. rst-class:: classref-property
  395. :ref:`int<class_int>` **seed** = ``0``
  396. .. rst-class:: classref-property-setget
  397. - void **set_seed** **(** :ref:`int<class_int>` value **)**
  398. - :ref:`int<class_int>` **get_seed** **(** **)**
  399. The random number seed for all noise types.
  400. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  401. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  402. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  403. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  404. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  405. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  406. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`