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.

importance of color, 400–401<br />

indexed color, 114<br />

object-oriented approach to, 468–478<br />

performing bitwise operations on, 763<br />

Rotated Triangle sketch, 403<br />

setting background color, 177<br />

setting color mode, 415–419<br />

specifying color value, 728<br />

Subtractive ColorWheel sketch, 405<br />

theory of color, 401–408<br />

true color, 114<br />

value property, 402<br />

web safe palette, 114<br />

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

Color Component Functions sketch, 423<br />

color components<br />

bitwise operations, 444<br />

INVERT argument, 453<br />

color data structure, 762<br />

color data type, 729<br />

creating arrays, 404<br />

Drawing Application example, 595<br />

primitive data types, 679<br />

color function, 402<br />

accessing individual color component values, 422<br />

color functions in <strong>Processing</strong>, 419–423<br />

bitwise operations, 423<br />

color mode<br />

Multi Modes sketch, 418<br />

setting color mode, 415–419<br />

color model, additive/subtractive, 406<br />

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

color palettes<br />

dithering, 114<br />

Drawing Application example, 592, 595<br />

web safe palette, 66, 114<br />

Color Picker comm<strong>and</strong>, Tools menu, 156<br />

Color section, <strong>Processing</strong> API, 724–730<br />

Color Shift sketch, 401<br />

Color Static sketch, 432<br />

color variations filter using bitwise operations, 773<br />

color wheel<br />

Subtractive ColorWheel sketch, 405<br />

colorMode function, 726<br />

accessing individual color component values, 422<br />

Drawing Application example, 595<br />

Multi Modes sketch, 418<br />

setting color mode, 415, 417<br />

columns<br />

calculating columns based on number of points, 179<br />

comm<strong>and</strong>s, <strong>Processing</strong> window<br />

Edit menu, 152<br />

File menu, 151<br />

Help menu, 157<br />

Sketch menu, 154<br />

Tools menu, 155<br />

comments<br />

block comment tags, 60<br />

commenting out a single line, 60<br />

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

compilers<br />

history of computers, 13<br />

jikes Java compiler, 145<br />

just-in-time compilers, 38<br />

compiling, 37<br />

hidden file tabs, 148<br />

Run button, toolbar, 149<br />

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

components<br />

color components, 444<br />

display window, 409<br />

composite data types, 680<br />

Composite section, <strong>Processing</strong> API, 680<br />

Compositing sketch, 436<br />

composition, OOP, 323–336<br />

has-a relationship, 324<br />

House class using, 391<br />

compression<br />

lossless compression, 115<br />

lossy compression, 115<br />

LZW compression, 115<br />

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

computer art, history of, 8–14<br />

computer graphics see graphics<br />

Computer in <strong>Art</strong>, The, 13<br />

computer-aided design, graphics, 108<br />

computers<br />

analog computers, 14<br />

dumb machines, 41<br />

concatenation operator (+), 313<br />

conditional expressions<br />

collision detection, 488<br />

is not equal to (!=), 313<br />

conditional operators, 74<br />

conditional statements, 76–83<br />

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

Boolean logic, 79, 685<br />

switch statements, 81–82<br />

ternary operator, 83<br />

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

cones<br />

cube to pyramid to cone to cylinder, 657–662<br />

conservation of momentum, law of, 555<br />

constants, 308<br />

class constants, 470<br />

magic numbers, 178<br />

naming conventions/rules, 325<br />

Constants section, <strong>Processing</strong> API, 743<br />

constrain function, 448<br />

constructors, OOP, 305, 380<br />

BurritoRecipe class, 309–311<br />

creating your own constructors, 380<br />

multiple constructors, 305<br />

INDEX<br />

781

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

Saved successfully!

Ooh no, something went wrong!