This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
get_noise_2d [2024/02/06 15:52] – created justin | get_noise_2d [2024/02/06 16:14] (current) – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
(WIP) | (WIP) | ||
+ | |||
+ | Returns the 2D noise value (a numeric value between -1.0 and 1.0) for the given X/Y position. The randomly generated noise from which the value is retrieved is based on the **global.noise_seed** variable. This variable can be changed in order to generate a different noise pattern (the seed value must be an integer). | ||
====Signature: | ====Signature: | ||
<code python> | <code python> | ||
- | get_noise_2d() | + | get_noise_2d(x, y) |
</ | </ | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
- | | | | | | | + | |x| |[[Number]]|Yes| |
+ | |y| |[[Number]]|Yes| | ||
+ | |||
+ | ^Return Value^Description^Type^ | ||
+ | |Noise Value|Returns a value between -1.0 and 1.0.|[[Number]]| | ||
====Example: | ====Example: |