noise()
Math / RandomDescription
Returns the Perlin noise value at specified coordinates. Produces smoother and more natural sequences than random().
Syntax
float noise(float x)
float noise(float x, float y)
float noise(float x, float y, float z)
Parameters
| Name | Type | Description |
|---|---|---|
| x | float | x-coordinate in noise space |
| y | float | y-coordinate (optional) |
| z | float | z-coordinate (optional) |
Returns
floatRelated
Under the Hood
Implementation in Processing.h / Processing.cpp:
Loading...