Chapter 2

Art by Numbers

Let the coding fun begin! Roll up your sleeves, insert your pocket protector and grab a large mug of joe. You’ll begin this chapter learning about the foundation of coding, algorithms, and end with a really cool example that puts everything you learned into practice. Along the way you’ll learn about some of the fundamental elements in programming, such as variables and functions. But rest assured, we’ll take things slow and ease our way into creative coding. Now’s a good time to caffeine up.


Some words just sound complicated, regardless of what they actually mean. Algorithm is one such term. In reality, an ...

Get Processing: Creative Coding and Generative Art in Processing 2 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.