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

796<br />

classes, 304, 321<br />

constant names, 325<br />

file names, 148<br />

identifiers, 63<br />

illegal characters, 63<br />

invalid suffixes for sketches, 148<br />

legal names, 63, 65<br />

reserved keywords, 65<br />

sketches, 149<br />

variables in loops, 183<br />

Napier, John, 9<br />

Napier, Mark, 18, 564<br />

navigation<br />

opening file navigator, 154<br />

negative numbers, 748<br />

neighborhoods, creating, 381–396<br />

Door class, 382–386<br />

House class, 391–396<br />

Neighborhood sketch, 396<br />

Roof class, 389<br />

Window class, 386–389<br />

Nematode sketch, 411, 413, 415<br />

net.flag<br />

interactivity with code art, 564<br />

New button, toolbar, 149<br />

New comm<strong>and</strong>, File menu, 151<br />

new keyword<br />

class constructors, 309<br />

creating objects, 379<br />

memory allocation for arrays, 84<br />

newline escape sequence, 380<br />

nf function, 682<br />

Ngan, William, 23<br />

Nimoy, John, 23<br />

“No accessible method” error, 148<br />

noCursor function, 678<br />

noFill function, 699<br />

noise function, 743<br />

noiseSeed function, 743<br />

noLoop function, 491<br />

non-orthogonal collisions<br />

see also orthogonal collisions<br />

h<strong>and</strong>ling, 532–534<br />

h<strong>and</strong>ling by rotating coordinates, 532<br />

Multiple Ground Segments sketch, 545<br />

non-orthogonal 2D collisions, 557<br />

orthogonal vs. non-orthogonal collisions, 525<br />

Reflection sketch, 529<br />

Rotated Coordinates sketch, 541<br />

NORMALIZED mode, 549<br />

normalizing vectors, 523–525<br />

noSmooth function, 215, 698<br />

noStroke function, 61, 71, 94<br />

not (logical not) operator, 689<br />

not equal to operator, 73<br />

null keyword<br />

using with “is not equal to”, 313<br />

number line, 109<br />

numbers<br />

adding fractions, 749<br />

adding negative numbers, 748<br />

converting binary value into decimal, 762<br />

dividing by zero, 748<br />

dividing fractions, 749<br />

exponential notation, 130<br />

exponential-logarithm relationship, 750<br />

formatting numbers into strings, 682<br />

functions rounding numbers, 741<br />

hexadecimal system, 728<br />

magic numbers, 178<br />

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

multiplying fractions, 748<br />

multiplying negative numbers, 748<br />

negative exponents, 749<br />

subtracting negative numbers, 748<br />

O<br />

Oak, 36<br />

Object class inheritance, 321<br />

object reference<br />

assigning to extended class, 323<br />

object-oriented programming see OOP<br />

object singletons, 678<br />

objects, 33, 302, 303<br />

see also OOP<br />

BurritoRecipe class example, 303<br />

checkObjectCollision function, 552<br />

constructors creating, 305<br />

inter-object collisions, 552–561<br />

methods <strong>and</strong>, 62<br />

object collisions, 520–534<br />

vectors, 521–534<br />

object interactions, 500–520<br />

easing, 500–505<br />

springing, 505–516<br />

properties <strong>and</strong>, 62<br />

octagon sketch<br />

plotting shapes, 359<br />

offset printers, 115<br />

On, Josh, 23<br />

online property, 678<br />

OOP (object-oriented programming), 302–336<br />

abstract keyword, 333, 469<br />

applying OOP to shape creation, 378–381<br />

BurritoRecipe class example, 303–318<br />

calling methods in, 62<br />

classes, 58, 302<br />

composition, 323–336<br />

curves as particle waves, 261<br />

data hiding, 319–320<br />

description, 34, 58, 302<br />

design patterns for common implementations, 657

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

Saved successfully!

Ooh no, something went wrong!