Someone please explain the noise() expression function arguments in detail
I feel the noise() expression function is poorly documented:
noise(valOrArray) Return type: Number.
Argument type: valOrArray is a Number or an Array [2 or 3].
Returns a number in the range from -1 to 1. The noise is not actually random; it is based on Perlin noise, which means that the return values for two input values that are near one another tend to be near one another. This type of noise is useful when you want a sequence of seemingly random numbers that don’t vary wildly from one to the other—as is usually the case when animating any apparently random natural motion. Example: rotation + 360*noise(time)
- What exactly does "for two input values that are near one another" mean?
Is it "noise(val)" with val changing in two subsequent calls?
Or is it "noise(val1, val2)"? - The function declaration indicates that two or three arguments can be specified,
but only an example of a function call with a single argument is given.
What do the other arguments do?
Your answers are appreciated.
