In this chapter, we will delve deeper into the Processing API for drawing shapes, images, and text, using several code examples to illustrate the different functions in the API. We will also learn how to use the P2D renderer and the PShape class for better 2D performance.
Renderers in Processing
In the previous chapters, we learned the basic structure of a Processing sketch, which consists of a setup() and a draw() function, with the former containing the sketch initialization and the latter the code that updates the screen in each frame. As part of ...