Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Noise and Organic Motion | Animation and Time-Based Art
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
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

Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 3. Kapittel 3

Spør AI

expand

Spør AI

ChatGPT

Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår

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

Sveip for å vise menyen

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

Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 3. Kapittel 3
some-alt