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.

INDEX<br />

784<br />

functions, 440<br />

loadPixels function, 451<br />

DisplayMode class, Java, 111<br />

distance formula<br />

Pythagorean theorem, 752<br />

dithering, 114<br />

division<br />

modulus operator, 73<br />

operator precedence, 121<br />

do . . . while loop, 86–87<br />

Door class<br />

creating a neighborhood, 382–386<br />

creating Door object, 386<br />

Drawing a Door sketch, 385<br />

methods, 382, 384<br />

properties, 382<br />

using Door objects in House class, 391, 393, 394<br />

doping, 761<br />

dot (.) syntax, 62<br />

dot product calculation, 531<br />

dots per inch (dpi)<br />

printing images, 116<br />

double data type, 309<br />

double keyword, 309<br />

downloads, <strong>Processing</strong>, 59<br />

dragging mouse<br />

mouseDragged function, 568<br />

draw function<br />

adding fading to sketch, 491<br />

asteroid shower animation, 550<br />

Bouncing Ball program, 78, 79, 80<br />

continuous mode introducing, 159<br />

controlling animation in <strong>Processing</strong>, 79<br />

Drawing Application example, 595, 598, 600<br />

event detection, 140<br />

Final Interactive Button example, 587<br />

Many Bouncing Balls program, 95<br />

moving box across screen, 98<br />

shape builder <strong>and</strong> animator example, 575<br />

threads in animation, 484<br />

drawDoor method, 382, 384<br />

drawEdge function, 575, 576<br />

drawEllipse function, 293<br />

drawHouse method, 393, 394<br />

drawing application<br />

<strong>Processing</strong> creating, 590–603<br />

raster-based approach, 590<br />

vector-based approach, 590<br />

Drawing Application sketch, 591<br />

drawing methods<br />

vertices, 112<br />

drawing modes see modes<br />

drawNode function, 575, 576<br />

drawPoly function, 377<br />

drawRectangle function, 96, 97<br />

drawTable function, 205, 209<br />

drawWindow method, 389<br />

Dürer, Albrecht, 8<br />

dynamically typed languages, 67<br />

dynamics, soft-body, 516–520<br />

E<br />

easing, 500–505<br />

Edit menu, <strong>Processing</strong> window, 152–153<br />

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

Copy comm<strong>and</strong>, 153<br />

Cut comm<strong>and</strong>, 153<br />

Find comm<strong>and</strong>, 153<br />

Find Next comm<strong>and</strong>, 153<br />

Paste comm<strong>and</strong>, 153<br />

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

Select All comm<strong>and</strong>, 153<br />

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

editors<br />

text editor, <strong>Processing</strong> window, 147<br />

elements<br />

accessing values in arrays, 85<br />

adding interface elements, 579–590<br />

ellipse function, 61<br />

arguments, 269<br />

Bouncing Ball program, 79<br />

changing default mode, 693<br />

default mode, 342<br />

default origin, 341<br />

stepped radial gradient program, 72<br />

ellipseMode function, 342, 343<br />

arguments, 693<br />

drawing arcs, 269<br />

ellipses<br />

Curve Ellipse sketch, 297<br />

curveEllipse function, 298<br />

ellipses with bounding boxes sketch, 344<br />

Ravenous Ellipse sketch, 502<br />

elliptical plots<br />

creating elliptical plots, 290<br />

creating elliptical spline plot, 295<br />

else keyword<br />

Conditionals section, <strong>Processing</strong> API, 689<br />

else statement see if . . . else syntax<br />

emissive function, 720<br />

encapsulation, 319–320<br />

description, 302<br />

encapsulating procedural complexity, 378<br />

tessellate function, 378<br />

encrypt function, 438<br />

encryption<br />

Image Encryption sketch, 439<br />

VERY_HIGH option, 439<br />

end caps for lines<br />

joining lines, 200<br />

strokeCap function, 198, 199<br />

strokeJoin function, 228<br />

endDraw function, 735

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

Saved successfully!

Ooh no, something went wrong!