Global Function

noise()

Declaration

func noise( x: Double, y: Double, z: Double ) -> Double

Parameters

x The x axis coordinate in noise texture.
y The y axis coordinate in noise texture.
z The z axis coordinate in noise texture.

Returns

Double

Description

Calculate the Perlin noise value at specified location. Perlin noise is a type of gradient noise developed by Ken Perlin. The value returned will be in the range [-1, 1].

Perlin noise at wikipedia.

Noise and turbulence.

Examples

let n = noise(x: 0.5, y: 0.1, z: 0.0)

Related

remap()