In this chapter, we will take a closer look at the Processing API for drawing graphics and text, with several code examples illustrating the different functions in the API. We will also learn how to use the P2D renderer and the PShape class for better 2D performance.
Drawing Shapes
Chapter 2 gave us an overview of some basic elements of the drawing API in Processing. We saw how we can draw predefined shapes using functions like ellipse() or rect(), while we can also draw arbitrary shapes ...