Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Noise and Organic Motion | Animation and Time-Based Art
Generative Art with JavaScript and P5.js

bookNoise and Organic Motion

index.html

index.html

copy

Perlin noise is a mathematical function that generates smooth, continuous sequences of values, often used to create natural-looking randomness in computer graphics. In P5.js, the noise() function provides access to Perlin noise, producing values that change gradually as the input changes. This is very different from the random() function, which generates independent, unpredictable values every time it is called.

When you use random(), each number has no relationship to the previous one, which can result in jittery or chaotic motion. By contrast, noise() is ideal for animating objects in a way that feels organic and lifelike, since each new value is smoothly related to the last. This makes Perlin noise a powerful tool for simulating natural phenomena such as flowing water, drifting clouds, waving grass, or the gentle motion of creatures.

In generative art, you use Perlin noise to control movement, shapes, and patterns that should feel more like those found in nature. The result is artwork that appears less mechanical and more expressive, with subtle variations and fluid transitions that are pleasing to the eye.

question mark

What is a key difference between noise() and random() in P5.js?

Select the correct answer

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 3. ChapterΒ 3

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

Suggested prompts:

Can you give an example of how to use the noise() function in P5.js?

What are some tips for using Perlin noise effectively in generative art?

How does Perlin noise differ from other types of noise or randomness?

bookNoise and Organic Motion

Swipe to show menu

index.html

index.html

copy

Perlin noise is a mathematical function that generates smooth, continuous sequences of values, often used to create natural-looking randomness in computer graphics. In P5.js, the noise() function provides access to Perlin noise, producing values that change gradually as the input changes. This is very different from the random() function, which generates independent, unpredictable values every time it is called.

When you use random(), each number has no relationship to the previous one, which can result in jittery or chaotic motion. By contrast, noise() is ideal for animating objects in a way that feels organic and lifelike, since each new value is smoothly related to the last. This makes Perlin noise a powerful tool for simulating natural phenomena such as flowing water, drifting clouds, waving grass, or the gentle motion of creatures.

In generative art, you use Perlin noise to control movement, shapes, and patterns that should feel more like those found in nature. The result is artwork that appears less mechanical and more expressive, with subtle variations and fluid transitions that are pleasing to the eye.

question mark

What is a key difference between noise() and random() in P5.js?

Select the correct answer

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 3. ChapterΒ 3
some-alt