Learn creative coding writing simple programs

3. Create an animation, use random()

A short review. What happens if we forget a semicolon at the end of the line?
A little more detailed explanation of the display as a grid of pixels, with hundreds of rows and columns. We try out the function random() to make our program create a different image each time. Finally we try out the function draw() and background() to be able to animate lines and change the background color.

Tags: semicolon, pixel, draw, background, animation

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