noise()

Math / Random

Description

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

NameTypeDescription
xfloatx-coordinate in noise space
yfloaty-coordinate (optional)
zfloatz-coordinate (optional)

Returns

float

Related

Under the Hood

Implementation in Processing.h / Processing.cpp:

Loading...