In this three part tutorial, I cover matrix “transformations” using p5.js. In this video, I look a bit behind the scenes on how transformations work and where the terms “push” and “pop” come from. I discuss the difference between a stack and a queue,
rotate() vs rotateZ(), and what a “matrix” refers to in computer graphics.

Link to Part 1:
Link to Part 2:

Support this channel on Patreon:
To buy Coding Train merchandise:
To Support the Processing Foundation:

Send me your questions and coding challenges!:

The Coding Train website:

Source Code for the all Video Lessons:


For an Intro to Programming using p5.js:
For Coding Challenges:

Help us caption & translate this video!