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

778<br />

beginShape function, 209<br />

applying vertex function, 219<br />

arguments, 699<br />

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

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

creating custom 3D cube, 628<br />

creating line strips, 220<br />

extrusion example, 656<br />

plotting shapes, 358, 359<br />

polygon creation sketch, 229<br />

QUAD_STRIP mode, 372<br />

QUADS mode, 369, 370<br />

TRIANGLES mode, 368, 369<br />

TRIANGLE_FAN mode, 372<br />

TRIANGLE_STRIP mode, 372<br />

BEVEL constant, 228<br />

Bézier curve<br />

connecting Bézier curves together, 279<br />

cubic Bézier curve, 278<br />

description, 693<br />

interpolating Bézier curve within convex hull, 277<br />

showing anchor <strong>and</strong> control points, 274<br />

bezier function, 273–298<br />

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

creating elliptical plots, 290<br />

parameters, 281<br />

bezierDetail function, 298<br />

bezierPoint function, 298<br />

bezierTangent function, 298<br />

bezierVertex function, 284, 287, 698<br />

creating hybrid shapes, 368<br />

billiard ball physics, 552<br />

binary machine code, 13<br />

binary operators, 76<br />

binary values, converting to decimal, 762<br />

biographies, code artists, 14–24<br />

bit mask, 769<br />

bitwise complement (~), 769<br />

bitwise operations, 443–448, 729, 760–773<br />

color functions, 423<br />

color variations filter using, 773<br />

Contrast sketch, 448<br />

description, 760<br />

image using, 444<br />

performing bitwise operations on color, 763<br />

shifting bits, 763–767<br />

signed bit, 765<br />

Tint sketch, 446<br />

two’s complement system, 765<br />

bitwise operators, 767–769<br />

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

bitwise complement (~), 769<br />

left shift (), 728, 763<br />

XOR (^), 769<br />

Bitwise Operators section, <strong>Processing</strong> API, 741<br />

black-box design see encapsulation<br />

blend function, 452, 459–467<br />

ADD mode, 463<br />

BLEND mode, 463<br />

DARKEST mode, 460, 463<br />

display window or PImage, 459<br />

LIGHTEST mode, 463, 468<br />

SUBTRACT mode, 463, 464, 465, 466<br />

blend method, PImage, 460<br />

BLEND mode, blend function, 463<br />

blend sketch, 461, 462, 463<br />

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

blendColor function, 419, 420, 729<br />

blendColor sketch, 420<br />

blind spot of the eye, 117<br />

block comment tags, 60<br />

blue component<br />

color data structure, 762<br />

specifying color value, 728<br />

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

blur<br />

gradient blur effect, 348<br />

Triangle Blur sketch, 348<br />

BLUR argument, filter function, 458, 459<br />

BLUR Filter sketch, 458<br />

boolean data type, 65<br />

boolean keyword, 577<br />

Boolean logic, 79, 685<br />

Bouncing Ball programs, 76, 90<br />

boundaries<br />

checkBoundaryCollision function, 552<br />

collision detection, 487<br />

bounding boxes, 344, 345<br />

Box class, 302<br />

box function<br />

see also rectangles<br />

coding in 3D, 618, 647, 696<br />

creating custom 3D cube, 627<br />

Extrusion Example sketch, 651<br />

rotations, 637<br />

Box Springs sketch, 705<br />

boxes<br />

Extrusion Example sketches, 655<br />

braces, curly braces { }, 61<br />

branching algorithm, 47<br />

break statements<br />

fades creating space, 192<br />

switch statements, 82<br />

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

browsers<br />

Java applets, 150<br />

Brunelleschi, Filippo, 8<br />

brush tool, 591, 598<br />

BufferedImage class, Java, 112<br />

32-bit color, 114<br />

class structure, 112

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

Saved successfully!

Ooh no, something went wrong!