Variables in p5.js (mouseX, mouseY)

Code! Programming with p5.js Lesson #2.1

contributions:

  • title: “Moving objects” author: name: “Godeta” url: “https://github.com/Godeta” url: “https://editor.p5js.org/Godeta/full/CFgbWpdhv” source: “https://editor.p5js.org/Godeta/present/CFgbWpdhv”
  • title: “Moving objects - digital segment numbers” author: name: “serup” url: “https://github.com/serup” url: “https://editor.p5js.org/serup/full/j0ylff1PS” source: “https://editor.p5js.org/serup/sketches/j0ylff1PS”

In this video, I introduce the concept of variables in p5.js. The setup() and draw() functions are covered as well as mouseX and mouseY.