04.04.2013 Views

Processing: Creative Coding and Computational Art

Processing: Creative Coding and Computational Art

Processing: Creative Coding and Computational Art

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Figure 5-4. Screen capture of <strong>Processing</strong>’s File ➤ Sketchbook submenus<br />

The File menu contains the following eight comm<strong>and</strong>s:<br />

THE PROCESSING ENVIRONMENT<br />

New (Cmd+N on OS X; Ctrl+N on Windows): This has the same functionality as the<br />

New button on the toolbar.<br />

Sketchbook: The top of the Sketchbook submenu includes the Open comm<strong>and</strong>,<br />

which has the same functionality as the Open button on the toolbar, discussed previously.<br />

Additional content within the Sketchbook submenu includes sketches<br />

you’ve created, residing at your sketchbook location, specified in the <strong>Processing</strong><br />

preferences; <strong>and</strong> an Examples directory. The Sketchbook submenu checks for PDE<br />

files, each enclosed within their own directory, within the specified Sketchbook<br />

directory. The PDE file <strong>and</strong> its directory must have the same name. You can also<br />

create additional outer directories (for organizational purposes) around your<br />

related sketches. <strong>Processing</strong>’s Examples directory, which I’ll discuss in a moment, is<br />

organized this way. PDE files not enclosed within a same-named directory will not<br />

be visible from the Sketchbook submenu. You can still explicitly open them with<br />

the Open comm<strong>and</strong>, but <strong>Processing</strong> will alert you that a directory is required <strong>and</strong><br />

will actually create one <strong>and</strong> move your file into it when you click OK—which is<br />

pretty cool. By default, <strong>Processing</strong> generates this required directory <strong>and</strong> naming<br />

structure whenever you create a new sketch, so you only need to mess with this<br />

stuff if you really want to. The Examples directory, at the bottom of the Sketchbook<br />

submenu, is installed with <strong>Processing</strong>, in the same directory as the <strong>Processing</strong> application.<br />

It is possible to exp<strong>and</strong> the Examples directory simply by placing your own<br />

sketch examples within it.<br />

151<br />

5

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!