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

806<br />

Nematode sketch, 411, 413<br />

translating rotations, 535<br />

sine<br />

mnemonic for trig functions, 756<br />

sine curve<br />

repeating distorted sine curve, 134<br />

repeating sine curve, 132<br />

sine wave<br />

phase shift, 756<br />

singletons<br />

object singletons, 678<br />

size<br />

textSize function, 740<br />

size function<br />

argument defining renderer, 618<br />

asteroid shower animation, 548<br />

default rendering mode, 162<br />

setting display size, 177<br />

sketch window, 60, 70<br />

specifying rendering mode, 162<br />

stepped radial gradient program, 70<br />

Sketch menu, <strong>Processing</strong> window, 153–154<br />

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

comm<strong>and</strong>s, 154<br />

Import Library comm<strong>and</strong>, 154<br />

Present comm<strong>and</strong>, 154<br />

Run comm<strong>and</strong>, 154<br />

Show Sketch Folder comm<strong>and</strong>, 154<br />

Stop comm<strong>and</strong>, 154<br />

sketch window<br />

size function, 60, 70<br />

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

Sketchbook directory, 151<br />

Sketchbook submenu, File menu, 151<br />

sketches<br />

see also <strong>Processing</strong> sketches<br />

applet subdirectory, 150<br />

creating new sketch, 149, 151<br />

exporting sketches, 150, 152<br />

as executable application, 152<br />

getting current focus state of, 678<br />

getting online status of, 678<br />

hidden file tabs when compiling, 148<br />

Java graphics programs, 144<br />

naming conventions, 149<br />

naming using illegal characters, 149<br />

naming using invalid suffix, 148<br />

opening directory of current sketch, 154<br />

opening, 149, 151<br />

saving, 149, 152<br />

saving as new sketch, 152<br />

specifying printing options, 152<br />

tabs indicating files in <strong>Processing</strong> window, 147<br />

sleep method, Thread class, 484<br />

slide rule<br />

Pickett circular slide rule, 9<br />

slider<br />

Drawing Application example, 593, 602<br />

slope, lines, 123, 243<br />

smooth function<br />

anti-aliasing using, 214–219, 698<br />

lines <strong>and</strong> curves, 245<br />

slightly reducing stroke weight of fine lines, 215<br />

Smooth option<br />

Create Font dialog box, 155<br />

smoothness, geometric curves, 126<br />

Sodaplay, 516<br />

soft-body dynamics, 516–520<br />

software development<br />

Java Development Kit (JDK), 144<br />

specular function, 720<br />

specularity, 720<br />

speed, 128<br />

speedX/speedY variables, vectors, 521<br />

sphere<br />

Interactive Toroid sketch, 667, 669<br />

sphere function<br />

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

drawing 2D sphere <strong>and</strong> rotating, 619<br />

sphereDetail function<br />

coding in 3D, 696<br />

Interactive Toroid sketch, 669<br />

spinning<br />

Spinning 3D Stuff sketch, 697<br />

Triangle Spin sketch, 350<br />

spinning cube<br />

coding in 3D, 616<br />

spinning around x- <strong>and</strong> y-axes, 617<br />

spinning around y-axis, 617<br />

translate function, 618<br />

Spinning Cube sketch, 617<br />

SpinnyCube class<br />

create method, 646<br />

rotation of cube around XYZ axes, 642, 645<br />

spinnyRotateXYZ method, 646<br />

spirals<br />

spiral built of polygons, 230, 233, 234<br />

TRIANGLE_STRIP Spiral sketch, 374<br />

splice function, 682<br />

spline curve using curve function, 281, 693<br />

spline plot<br />

creating elliptical spline plot, 295<br />

split function, 682<br />

springing, 505–511<br />

createSpring function, 513<br />

Hybrid Springy Dude sketch, 518<br />

setSpring function, 513<br />

simulating spring behavior, 511–516<br />

Weight on a Spring sketch, 513, 516<br />

sprockets<br />

makeSprocket function, 363<br />

SQUARE constant, 199<br />

stacks, 714

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

Saved successfully!

Ooh no, something went wrong!