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.

Transform section, 712–718<br />

Trigonometry section, 742<br />

Typography section, 737–740<br />

Vertex section, 698<br />

viewing options, 676<br />

Web section, 707<br />

<strong>Processing</strong> discourse board, 157<br />

<strong>Processing</strong> environment, 144–170<br />

<strong>Processing</strong> files, 150<br />

<strong>Processing</strong> framework, 39<br />

<strong>Processing</strong> functions see functions, list of<br />

<strong>Processing</strong> IDE, 30, 144–170<br />

<strong>Processing</strong> libraries, 743<br />

Import Library comm<strong>and</strong>, 154<br />

importing PDF library, 712<br />

<strong>Processing</strong> modes see modes<br />

<strong>Processing</strong> programs<br />

see also coding; <strong>Processing</strong> programs, list of<br />

arrays, 83–85<br />

conditional statements, 76–83<br />

functions, 96–103<br />

functions with arguments, 60<br />

functions without arguments, 61<br />

how <strong>Processing</strong> IDE works, 145<br />

literals, 64<br />

logical flow of programs, 74<br />

loops, 85–96<br />

operators, 72–76<br />

parentheses defining functions, 60<br />

semicolons in, 60<br />

statements, 60<br />

switch statements, 81–82<br />

variables, 65–72<br />

<strong>Processing</strong> programs, list of<br />

see also <strong>Processing</strong> sketches<br />

algorithmic tree, 45–53<br />

Bouncing Ball program, 76, 90<br />

continuous radial gradient program, 88<br />

drawing black rectangle, 32<br />

Java applet version of, 38<br />

OOP version of, 35<br />

drawing rectangle, 96, 97<br />

Hello Earth program, 59<br />

mail merge program, 89–90<br />

Many Bouncing Balls program, 90, 96<br />

moving box across screen, 98<br />

stepped radial gradient program, 68<br />

<strong>Processing</strong> sketches, 144<br />

see also sketches; <strong>Processing</strong> programs, list of<br />

.pde suffix, 147<br />

1D Collision Using Conservation of Momentum, 557<br />

1D Collision with Swapping Velocities, 554<br />

2D Collision Using Conservation of Momentum, 559<br />

Acceleration Calculations sketch output, 495<br />

acceleration with gravity, 494<br />

Alpha, 407<br />

Analog Clock, 709<br />

arcs with bounding boxes, 344, 345<br />

Asteroid Shower, 551<br />

Bézier Ellipse, 292, 294<br />

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

blend function using SUBTRACT mode, 464, 465, 466<br />

blend, 461, 462, 463<br />

BlendColor <strong>and</strong> LerpColor, 730<br />

blendColor, 420<br />

BLUR Filter, 458<br />

Box Springs, 705<br />

Button, 579, 580<br />

Collision Detection <strong>and</strong> Timeout, 491<br />

Color B<strong>and</strong>ing with pixels[], 431<br />

Color Component Functions, 423<br />

Color Modes RGB/HSB, 416<br />

Color Shift, 401<br />

Color, 727<br />

Color Static, 432<br />

Compositing, 436<br />

concentric maze, 222, 223<br />

Contrast (using bitwise operations), 448<br />

create triangle, 227<br />

Cube to Pyramid to Cone to Cylinder, 660–661<br />

Cubes Contained Within a Cube, 634<br />

Cubic Grid, 624<br />

Curve Ellipse, 297<br />

curve() vs. curveVertex(), 289<br />

Curves, 695<br />

Disintegrating Quad Wall, 356<br />

Drawing a Door, 385<br />

Drawing Application, 591<br />

drawing cubes, 166<br />

drawing rectangle with OOP, 381<br />

drawing shapes, 159<br />

Drawing Some Roofs, 391<br />

Drawing Some Windows, 388<br />

ellipses with bounding boxes, 344<br />

Extrusion Example, 651<br />

hollow box version, 655<br />

solid box version, 655<br />

wireframe box version, 656<br />

Fade-Spin, 408<br />

Fading, 492<br />

FlyThrough, 724<br />

From Neg to Pos, 455<br />

generating polygon, 162<br />

GRAY Filter, 457<br />

grid sketches, 185, 188<br />

HoneyComb, 688<br />

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

horizontal fade to black, 191<br />

how <strong>Processing</strong> IDE works, 145<br />

INDEX<br />

801

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

Saved successfully!

Ooh no, something went wrong!