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
Below you can ask and answer questions related to this video. If your question is unrelated to the video, please post it at the Processing Forum as I'm unable to help with all of your programs and still have enough free time to eat and sleep :)
comments powered by Disqus