© Engin Arslan 2018
Engin ArslanLearn JavaScript with p5.jshttps://doi.org/10.1007/978-1-4842-3426-6_12

12. More on p5.js

Engin Arslan1 
(1)
Toronto, Ontario, Canada
 

At this point, we are almost ready to work on our final project: an interactive game built using JavaScript and p5.js! That’s in the next chapter. Before we do that, I would like to demonstrate a couple of more useful p5.js functions to extend the realm of things we can build.

Have you noticed how we can draw shapes on the screen using our current knowledge, but we can’t really transform them such as rotating them around their center? That’s a big blocker on the kinds of visuals we can build, so in this chapter let’s learn how to do transformations in p5.js to enhance our abilities.

Rotate ...

Get Learn JavaScript with p5.js: Coding for Visual Learners now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.