The videos in this section were created using a different editor 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
- The map() function
- Code Examples for Videos: 2.1-2.5
- video 9.1:
translate()
,rotate()
,push()
,pop()
- video 9.2:
scale()
- video 9.3: More on transformations
- Chapters 4 through Ex.4.5, 8 through Ex. 8.9
- Chapters 6 (Transformations) and 8.10-8.15 (More complex motion)
- Getting Started with p5.js book | Ebook (free with NYU Library login) | Code
- clock -- Clock coding challenge video
- Tutorial: Recode Catalog by John Whitney
- Rainbow Paintbrush in p5.js by Kelly Lougheed