The reference documentation is just like a dictionary; you’ll learn which words exist, and how to use them.
🏭 Guided activity Explore the p5.js reference documentation. The examples are interactive.
See also Soon+Cox (2020) Æsthetic ProgrammingReading the reference guide in Chapter 1.
Dan Shiffman
Dan Shiffman is, among other things, a youtube creator of educational videos about p5.js. His channel is called 🚂 The Coding Train 🚂. Make sure to check it out, and see some of his videos.
setup() and draw() as basic elements of almost all p5.js programs
canvas
coordinates, with (0, 0) in top-left corner
circle. Let’s look at the reference
🏭 Guided activity Make four, individual sketches of which the first draws a small circle near top-left corner, the second a medium sized near the middle, the third a tiny two-third down near the bottom right area, and the final a very large partially off-screen.