Chapter 7. Media

Processing is capable of drawing more than simple lines and shapes. It’s time to learn how to load raster images, vector files, and fonts into our programs to extend the visual possibilities to photography, detailed diagrams, and diverse typefaces.

Processing uses a folder named data to store such files, so that you never have to think about their location when moving sketches around and exporting them. We’ve posted some media files online for you to use in this chapter’s examples.

Download this file, unzip it to the desktop (or somewhere else convenient), and make a mental note of its location.

Note

To unzip on OS X, just double-click the file, and it will create a folder named media. On Windows, double-click the media.zip ...

Get Getting Started with Processing.py 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.