Chapter 15

Images

“Politics will eventually be replaced by imagery. The politician will be only too happy to abdicate in favor of his image, because the image will be much more powerful than he could ever be.”

—Marshall McLuhan

“When sit comes to pixels, I think I’ve had my fill. There are enough pixels in my fingers and brains that I probably need a few decades to digest all of them.”

—John Maeda

In this chapter:

– The PImage class.

– Displaying images.

– Changing image color.

– The pixels of an image.

– Simple image processing.

– Interactive image processing.

A digital image is nothing more than data—numbers indicating variations of red, green, and blue at a particular location on a grid of pixels. Most of the time, we view these pixels ...

Get Learning Processing now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.