Skip to content

textmode.js / Textmodifier / noise

Method: noise()

ts
noise(
   x, 
   y?, 
   z?): number;

Return deterministic multi-octave noise for a coordinate.

Similar input coordinates produce similar values, making noise() useful for organic motion, terrain, contours, and flow-field sketches.

Parameters

ParameterTypeDescription
xnumberX coordinate in noise space.
y?numberY coordinate in noise space.
z?numberZ coordinate in noise space.

Returns

number

Noise value in the range [0, 1].

Example