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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

endRecord function, 710<br />

endShape function<br />

applying vertex function, 219<br />

calling vertex function, 210, 698, 699<br />

CLOSE argument, 699<br />

line loops, 226<br />

creating custom 3D cube, 628<br />

bezier() vs. bezierVertex() sketch, 287<br />

extrusion example, 656<br />

plotting shapes, 358, 359<br />

polygon creation sketch, 229<br />

ENIAC computer, 12<br />

enumerated types<br />

switch statements, 82<br />

Environment section, <strong>Processing</strong> API, 678<br />

environmental properties, accessing, 678<br />

equal to operator<br />

confusion with assignment operator, 75<br />

relational operators, 73<br />

equals method, Java, 681<br />

equals operator<br />

assignment operator compared, 43<br />

eraser<br />

Drawing Application example, 591<br />

errors<br />

debugging logic errors, 81<br />

debugging using text area, 147<br />

message area indicating, 147<br />

“No accessible method” error, 148<br />

OutOfMemoryError, 433<br />

“Type . . . was not found” error, 148<br />

escape sequences, 380<br />

Event class, Java, 140<br />

event loop<br />

Bouncing Ball program, 80<br />

events<br />

description, 564<br />

event detection, 139<br />

event h<strong>and</strong>ling, 140<br />

focus events, 139<br />

higher/lower levels of detection, 564<br />

interactivity <strong>and</strong> events, 564–613<br />

key event detection, 605<br />

keyboard events, 139, 603–611<br />

menu events, 139<br />

mouse events, 139, 565–590<br />

polling, 139<br />

types of event, 139<br />

window events, 139<br />

Ewing, Ric, 362<br />

Examples directory<br />

Sketchbook submenu, File menu, 151<br />

exception h<strong>and</strong>ling, 378<br />

executing code<br />

Run/Stop buttons, toolbar, 149<br />

exponential notation, 130<br />

exponentials, 749, 750<br />

Export Application comm<strong>and</strong>, File menu, 152<br />

Export button, toolbar, 150<br />

Export comm<strong>and</strong>, File menu, 152<br />

Export section<br />

Getting Started comm<strong>and</strong>, Help menu, 157<br />

Extended option<br />

Reference comm<strong>and</strong>, Help menu, 158<br />

extends keyword<br />

inheritance, 322<br />

object-oriented approach to color/imaging, 469<br />

extrusion, 650<br />

coding in 3D, 650–657<br />

Extrusion Example sketch, 651<br />

hollow box version, 655<br />

solid box version, 655<br />

wireframe box version, 656<br />

F<br />

Fade-Spin sketch, 408<br />

fadeScreen function, 159<br />

fading<br />

adding fading to sketch, 491<br />

fades creating space, 191–195<br />

horizontal <strong>and</strong> vertical fade to black, 193<br />

horizontal fade to black, 191<br />

Fading sketch, 492<br />

FAQs<br />

Frequently Asked Questions comm<strong>and</strong>, 158<br />

Feed, 19<br />

Fermat, Pierre de, 109<br />

File menu, <strong>Processing</strong> window, 150–152<br />

comm<strong>and</strong>s, 151<br />

Export Application comm<strong>and</strong>, 152<br />

Export comm<strong>and</strong>, 152<br />

New comm<strong>and</strong>, 151<br />

Page Setup comm<strong>and</strong>, 152<br />

Print comm<strong>and</strong>, 152<br />

Save As comm<strong>and</strong>, 152<br />

Save comm<strong>and</strong>, 152<br />

Sketchbook comm<strong>and</strong>, 151<br />

files<br />

compiling sketches with hidden files, 148<br />

file names, 148<br />

opening file navigator, 154<br />

saving files, 467<br />

tabs indicating in <strong>Processing</strong> window, 147<br />

using invalid suffix, 148<br />

Files section, <strong>Processing</strong> API, 710<br />

fill function<br />

changing rendering state color, 726<br />

creating arrays, 404<br />

description, 61, 403, 724<br />

Drawing Application example, 597<br />

stepped radial gradient program, 72<br />

TRIANGLES mode, beginShape(), 369<br />

using 24-bit color, 113<br />

INDEX<br />

785

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

Saved successfully!

Ooh no, something went wrong!