The videos in this section were created ~2 years ago. They use different editors for p5.js. All of the concepts should still apply, however, there are some minor changes. Most notably in JavaScript let
is now the preferred way to declare a variable over var
. If you would like to learn more about this you can watch this video about let vs var.
setup()
,draw()
, and other events:mousePressed()
, etc.- Built-in variables
- User defined variables
- The random() function
- video 2.5: random()
- Rainbow Paintbrush in p5.js by Kelly Lougheed
- The map() function