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.

INDEX<br />

804<br />

radians, converting between degrees <strong>and</strong>, 758<br />

radicals, relationship with fractional exponents, 750<br />

r<strong>and</strong>om function, 34, 742<br />

drawing natural (imperfect) lines, 179–184<br />

doubly r<strong>and</strong>omized particle line, 181<br />

multiple r<strong>and</strong>omized particle lines, 183, 184<br />

r<strong>and</strong>omized point line, 180<br />

grid generated from points, 187<br />

mail merge program, 90<br />

Many Bouncing Balls program, 94<br />

Puff sketch example, 138<br />

r<strong>and</strong>omized particle spray, 181<br />

scribble plotter sketch, 218<br />

R<strong>and</strong>om section, <strong>Processing</strong> API, 742<br />

r<strong>and</strong>omSeed function, 743<br />

RAPUNSEL project, 20<br />

raster graphics, 115<br />

raster-based approach, 590<br />

Ravenous Ellipse sketch, 502<br />

Ravenous Triangle sketch, 504<br />

Reas, Casey, 5, 8, 21<br />

records<br />

beginRecord/endRecord functions, 710<br />

rect function, 97, 101, 112<br />

adding fading to sketch, 492<br />

changing default mode, 693<br />

default origin, 341<br />

drawing 2D rectangle <strong>and</strong> rotating, 618<br />

drawing modes, 341<br />

transformations, 714<br />

Rectangle method, Java, 112<br />

rectangles<br />

see also box function<br />

area of, 752<br />

drawing black rectangle, 32<br />

drawing grey rectangle, 33<br />

drawing OOP version of, 35<br />

drawing with OOP sketch, 381<br />

moving on screen, 42<br />

perimeter of, 754<br />

rotation around XYZ axes, 639<br />

rectMode function, 110<br />

arguments, 693<br />

drawing modes, 341, 342<br />

state change, 342<br />

recursion, 347<br />

programming algorithmic tree, 46<br />

red component<br />

color data structure, 762<br />

specifying color value, 728<br />

red function, 422, 423, 728<br />

Red Saturation sketch, 442<br />

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

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

reference variables, 380, 679<br />

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

reflection, law of, 525–532<br />

registration point, 110<br />

Reichardt, Jasia, 13<br />

relational operators, 73–74<br />

logical flow of programs, 74<br />

Relational Operators section, <strong>Processing</strong> API, 685<br />

relationships<br />

has-a relationship, 324<br />

is-a relationship, 324<br />

releasing mouse<br />

mouseReleased function, 567<br />

rendering<br />

computer optimization for 3D rendering, 651<br />

how <strong>and</strong> when for loops render, 486<br />

rendering PImage object to screen, 195<br />

rendering modes, 162–169<br />

argument defining, 618<br />

JAVA2D mode, 162–163<br />

OPENGL mode, 166–169<br />

P2D mode, 162<br />

P3D mode, 164–165<br />

Rendering section, <strong>Processing</strong> API, 734–736<br />

repaint function, 484<br />

reserved keywords<br />

legal names, 65<br />

Structure section, <strong>Processing</strong> API, 677<br />

resetMatrix function<br />

Fade-Spin sketch, 409<br />

resetting affine transformation matrix, 355, 357<br />

resizing windows, 150<br />

resolution of monitor screen, 115<br />

resolution independence, 117<br />

return types, 209<br />

void return type, 209<br />

writing custom functions, 97<br />

return values, 305<br />

<strong>Processing</strong> functions, 261<br />

RGB (red, green, blue)<br />

Color Modes RGB/HSB sketch, 416<br />

Color Picker dialog, 156<br />

colorMode function, 726<br />

right shift (>>) bitwise operation, 728<br />

Roman abacus, 9<br />

Roof class<br />

creating a neighborhood, 389<br />

Drawing Some Roofs sketch, 391<br />

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

rotate function, 350<br />

affine transformations, 352<br />

creating custom 3D cube, 628<br />

drawing 2D rectangle <strong>and</strong> rotating, 619<br />

Rotated Triangle sketch, 403<br />

rotateVertices function, 641<br />

rotateX function, 618<br />

rotations<br />

3D rotations, 635–646<br />

drawing 2D rectangle <strong>and</strong> rotating, 618

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

Saved successfully!

Ooh no, something went wrong!