Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 2.38 KB

03_interaction.md

File metadata and controls

29 lines (24 loc) · 2.38 KB

Interaction: Conditionals

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.

Conditional Statements

Getting Started with p5.js book

GUI Interfaces

One way to practice working with conditionals is to try to code a common interface elements in the canvas: e.g. rollover, button, slider, etc. In week 6 we'll compare this technique to using elements the browser provides for free.