lovr.math.noise

Edit

Returns a 1D, 2D, 3D, or 4D simplex noise value. The number will be between 0 and 1.





Arguments

NameTypeDescription
xnumber The x coordinate of the input.

Returns

NameTypeDescription
noisenumber The noise value, between 0 and 1.

Arguments

NameTypeDescription
xnumber The x coordinate of the input.
ynumber The y coordinate of the input.

Returns

NameTypeDescription
noisenumber The noise value, between 0 and 1.

Arguments

NameTypeDescription
xnumber The x coordinate of the input.
ynumber The y coordinate of the input.
znumber The z coordinate of the input.

Returns

NameTypeDescription
noisenumber The noise value, between 0 and 1.

Arguments

NameTypeDescription
xnumber The x coordinate of the input.
ynumber The y coordinate of the input.
znumber The z coordinate of the input.
wnumber The w coordinate of the input.

Returns

NameTypeDescription
noisenumber The noise value, between 0 and 1.

See also