Learn creative coding writing simple programs

40. The candy-space. Understanding noise() with 2 and 3 parameters

Second part of our candy space example, where we try out the noise() function with two and three parameters. We first animate the colors of one line of ellipses. We use the time as the y value in the noise() function. Then in another test we create a grid of circles, where each circle gets it's color using the noise() function, using the x and y position of the circle to choose a color. Finally we animate the colors of this grid, by using time to increment the z variable in our noise() call, so we get a different set of colors for each frame of our animation.

Tags: noise

Code editor

You can make changes to the code below. Then

Questions and comments

Try to stay close to the topic of this episode. Use the Processing forums for help with unrelated Processing projects (or hire me for help ;-)

To indicate that a word in your comment is code, use the `backtick`. Example
Do `float` and `int` smell similar?
To highlight code blocks, surround it with ``` code-fences ``` like this:
``` void setup() { size(600, 600); } ```