O'Reilly logo

Learn JavaScript with p5.js: Coding for Visual Learners by Engin Arslan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

© 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 Arslan
(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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required