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 media files online for you to use in this chapter’s examples: http://www.processing.org/learning/books/media.zip.

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

Note

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

Get Make: Getting Started with Processing, 2nd Edition 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.