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 />

776<br />

SYMBOLS AND NUMERICS<br />

/* <strong>and</strong> */ notation for comments, 60<br />

// notation for comments, 60<br />

# symbol, color values, 728<br />

~ (bitwise complement), 769<br />

> (shifting bits), 763–767<br />

& (bitwise AND operator), 767, 769<br />

^ (bitwise XOR operator), 769<br />

| (bitwise OR operator), 768<br />

? . . . : statement see ternary operator<br />

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

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

24-bit color, 113<br />

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

2D Primitives section, <strong>Processing</strong> API, 692<br />

32-bit color, 114<br />

3D coding, 616–672<br />

see also coding 3D<br />

3D engine, 618<br />

3D Math, 109<br />

3D modes<br />

OPENGL mode, 166–169<br />

P3D mode, 164–165<br />

3D Primitives section, 696<br />

3D rotations, 635–646<br />

3D shapes<br />

simple vs. complex polygons, 371<br />

48-bit color, 114<br />

8-bit alpha component, 114<br />

8-bit color, 114<br />

A<br />

AARON, 16<br />

abacus, Roman, 9<br />

ABC computer, 11<br />

abridged <strong>Processing</strong> API see <strong>Processing</strong> API<br />

abs function, 439, 453<br />

abstract classes, 333<br />

abstract keyword<br />

abstract class declaration, 470<br />

instantiation of classes, 333<br />

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

abstract methods, 334<br />

LinearGradient class implementing, 474<br />

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

RadialGradient class implementing, 475<br />

accelerated motion, 129<br />

acceleration<br />

Acceleration Calculations sketch output, 495<br />

acceleration with gravity sketch, 494<br />

acceleration curve, 127<br />

accelX/accelY variables<br />

soft-body dynamics, 520<br />

springing, 506<br />

access modifiers, 312<br />

Add File comm<strong>and</strong>, Sketch menu, 154<br />

Drawing Application example, 594<br />

ADD mode, blend function, 463<br />

addition<br />

operator precedence, 121<br />

additive color model, 406<br />

aesthetics <strong>and</strong> computation, 5–8<br />

reason for creating DBN, 8<br />

affine transformations, 352<br />

resetting affine transformation matrix, 355<br />

AffineTransform class, Java, 352<br />

After Effects, 118<br />

algebra<br />

adding fractions, 749<br />

adding negative numbers, 748<br />

algebraic expression for lines, 123<br />

associative/non-associative properties of operators,<br />

121–122<br />

dividing by zero, 748<br />

dividing fractions, 749<br />

exponential-logarithm relationship, 750<br />

history of, 120<br />

implementing algebraic expressions in <strong>Processing</strong>, 121<br />

math for graphics, 120–122, 748–751<br />

multiplying algebraic expressions, 122<br />

multiplying <strong>and</strong> dividing exponents, 750<br />

multiplying fractions, 748<br />

multiplying negative numbers, 748<br />

negative exponents, 749<br />

operator precedence, 121<br />

relationship between radicals <strong>and</strong> fractional exponents,<br />

750<br />

subtracting negative numbers, 748<br />

algorithms, 40<br />

algorithmic tree, 45–53<br />

branching algorithm, 47<br />

recursion, 46<br />

aliasing/anti-aliasing, 215<br />

alignment<br />

textAlign function, 740<br />

All Character option<br />

Create Font dialog box, 155<br />

alpha function, 422<br />

alpha transparency see transparency<br />

ambient function, 720<br />

ambient light, 720<br />

Analog Clock sketch, 709<br />

analog computers, 14<br />

<strong>and</strong> (logical <strong>and</strong>) operator<br />

Bouncing Ball program, 80<br />

conditional operators, 74<br />

Logical Operators section, 689<br />

AND bitwise operator (&), 767, 769<br />

Angel, Dr. Edward, 108<br />

angle of incidence, 525<br />

angles<br />

measuring with radians, 757

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

Saved successfully!

Ooh no, something went wrong!