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

794<br />

M<br />

Mac keyboard shortcuts, 149<br />

machine code, 13<br />

Maeda, John, 5, 8, 19<br />

magic numbers, 102, 178<br />

creating table structure, 205<br />

mail merge program, 89–90<br />

makePoly function<br />

method overloading, 362<br />

plotting shapes, 359<br />

polygon creation sketch, 230, 362<br />

makeRect function<br />

drawing lines, 213<br />

scribble plotter sketch, 215, 218, 219<br />

makeSprocket function, 363–365<br />

makeWaves function, 261<br />

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

mapping<br />

ImageMap sketch, 701<br />

UV mapping, 699<br />

Mark 1 computer, 11<br />

mask method, PImage, 448<br />

Mask the Sky sketch, 449<br />

Mask the Sky with Gradient sketch, 450<br />

masks<br />

mask like alpha channel, 449<br />

pixel array mask, 450<br />

mass<br />

1D collisions, 555<br />

Material Properties section, <strong>Processing</strong> API, 720–724<br />

math for graphics, 119–138<br />

3D Math, 109<br />

algebra, 120–122, 748–751<br />

bitwise operations, 760–773<br />

geometry, 123–131, 751–755<br />

curves, 124–131<br />

lines, 123<br />

points, 123<br />

multiplying algebraic expressions, 122<br />

operator precedence, 121<br />

properties of operators, 121–122<br />

trigonometry, 131–138, 755–760<br />

x <strong>and</strong> y axis directions, 109<br />

Math section, <strong>Processing</strong> API, 740–743<br />

matrices, 712<br />

affine transformations, 352<br />

managing transformation matrices, 714<br />

matrix stack, 714<br />

pushing <strong>and</strong> popping matrices, 409–415<br />

resetting affine transformation matrix, 355<br />

Transformation Matrix sketch, 410<br />

matrix stack, 714<br />

max function, 223, 224, 475<br />

maze<br />

concentric maze sketch, 222, 223<br />

maze tile sketch, 224, 226<br />

members of classes, OOP, 308<br />

memory<br />

working with large images, 433<br />

memory addresses<br />

classes as data types, 313<br />

menu events, 139<br />

menus, <strong>Processing</strong> window, 150–158<br />

message area, <strong>Processing</strong> window, 147<br />

collapse panes buttons, 150<br />

resizing window panes, 150<br />

method overloading see overloading<br />

method overriding see overriding<br />

method signatures, 209<br />

multiple constructors, 305<br />

methods<br />

see also functions<br />

abstract methods, 334<br />

blend method, PImage, 460<br />

calling methods, 62<br />

class constructors, 309<br />

constructors, 305<br />

create method, Cube class, 627, 628<br />

create method, SpinnyCube class, 646<br />

description, 62, 302<br />

drawDoor method, 382, 384<br />

drawHouse method, 393, 394<br />

drawing methods, 112<br />

drawWindow method, 389<br />

equals method, Java, 681<br />

functions <strong>and</strong>, 305<br />

get method, PImage, 440, 731<br />

getClickCount method, 612<br />

getter methods, 472<br />

mask method, PImage, 448<br />

overloaded method, 628<br />

paint method, Graphics class, 726<br />

parseInt method, Integer class, 707<br />

printRecipe method, 312<br />

public keyword, 319<br />

Rectangle method, Java, 112<br />

set method, PImage, 440<br />

setKnob method, Door class, 382, 384<br />

setter methods, 472<br />

sleep method, Thread class, 484<br />

spinnyRotateXYZ method, 646<br />

subclasses overriding methods, 331<br />

void keyword, 305<br />

Metrics section, <strong>Processing</strong> API, 740<br />

millis function, 491, 708<br />

min function, 223, 224<br />

minute function, 708<br />

MITER constant<br />

joining lines using strokeJoin(), 228<br />

modelX/modelY/modelZ functions, 720

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

Saved successfully!

Ooh no, something went wrong!