March 2018
Beginner to intermediate
221 pages
3h 35m
English
In the previous chapter, we saw some of the variables that p5.js makes available for us. One important thing to note is that these variables can only be used from inside the p5.js functions setup and draw. If we were to try to use them outside these functions, we would get an error saying that they are not declared.
In this chapter we’ll look at another useful variable that p5.js makes available for us: frameCount. We will also learn about frames and frameRate function.
Remember how we defined a count function in the previous ...
Read now
Unlock full access