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.

otation of rectangle around XYZ axes, 639, 641<br />

single axis 3D rotation, 635<br />

Single Axis 3D Rotation sketch, 637<br />

ROUND constant<br />

end caps for lines, 199<br />

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

round function, 742<br />

rounding<br />

converting float to int, 184<br />

ROY G BIV sketch, 417<br />

Rozin, Daniel, 23<br />

Run button, toolbar, 149<br />

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

S<br />

s<strong>and</strong> m<strong>and</strong>ala, 7<br />

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

Save As comm<strong>and</strong>, File menu, 152<br />

Save button, toolbar, 149<br />

Save comm<strong>and</strong>, File menu, 152<br />

save function, 467, 710<br />

saveBytes function, 710<br />

saveFrame function, 467, 710<br />

saveStrings function, 710<br />

scale function, 352<br />

scatter variable, mouseMoved(), 569<br />

Schmidt, Karsten, 23, 452<br />

Schwartz, Lillian, 15<br />

scope, 305<br />

global scope, 87<br />

initializing properties, 310<br />

local scope, 87<br />

properties, 305<br />

variables, 70, 183, 305<br />

screen images<br />

saving screen image data, 710<br />

screen property, 678<br />

screen resolution, monitor, 115<br />

screenX/screenY/screenZ functions, 720<br />

SCRIBBLE constant, 218<br />

scribble function, 215, 218<br />

scribble plotter sketch, 215, 218<br />

searching<br />

Find in Reference comm<strong>and</strong>, 158<br />

secant lines, 128<br />

second function, 708<br />

seed functions, 743<br />

Select All comm<strong>and</strong>, Edit menu, 153<br />

semantics, 58<br />

semicolons in <strong>Processing</strong> programs, 60<br />

semiconductors, 761<br />

set function<br />

creating linear gradient, 424<br />

creating radial gradient, 428<br />

creating wave gradient, 429<br />

Loading Images with set() sketch, 434<br />

set method, PImage, 440<br />

set methods<br />

accessing private property, 319<br />

BurritoRecipe class example, 303<br />

Environment section, <strong>Processing</strong> API, 678<br />

private keyword on properties, 312<br />

<strong>Processing</strong> approach, 382<br />

setter methods, OOP, 472<br />

setEllipse function, 293<br />

setGradient function, 426<br />

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

setParticles function, 261<br />

setR<strong>and</strong>omStyle function, 140<br />

setSpring function, 513<br />

setters see set methods<br />

Setting section, <strong>Processing</strong> API<br />

setup function<br />

Bouncing Ball program, 78, 80<br />

continuous mode introducing, 159<br />

Drawing Application example, 593<br />

Many Bouncing Balls program, 94<br />

Neighborhood sketch, 394<br />

shape builder <strong>and</strong> animator example, 575<br />

writing custom functions, 97, 205<br />

Shape class<br />

applying inheritance, 321–323<br />

inheritance in OOP, 302<br />

shape function, 295, 340–378<br />

shape modes, 368–374<br />

Shape section, <strong>Processing</strong> API, 691–701<br />

shapes<br />

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

creating hybrid shapes, 365–368<br />

Hybrid Shape sketch, 366, 368<br />

mapping image onto surface of, 699<br />

plotting shapes, 358–365<br />

primitives (primitive shapes), 340<br />

shape builder <strong>and</strong> animator example, 570<br />

tessellation, 374–378<br />

transforming, 350–358<br />

shapeVertex function, 295<br />

shifting bits (>), 763–767<br />

shininess function, 720<br />

shortcuts<br />

keyboard shortcuts for toolbar buttons, 149<br />

assignment operation, 184<br />

shorten function, 682<br />

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

Shredder, 18<br />

signed bit, 765<br />

silicon, 761<br />

Simon, John F. Jr., 19<br />

SIMPLICITY, 20<br />

simulation see animation<br />

sin function<br />

creating curves using trig, 256<br />

Drawing Application example, 598<br />

INDEX<br />

805

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

Saved successfully!

Ooh no, something went wrong!