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.

st<strong>and</strong>ardization, 37<br />

state change following rectMode call, 342<br />

statements, 60<br />

conditional statements, 76–83<br />

declaring primitive variable type, 65<br />

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

switch statements, 81–82<br />

static images, animation <strong>and</strong>, 79<br />

static keyword, 308<br />

class constants, 470<br />

Door class, 383<br />

static properties, 308, 325<br />

static variables, 383<br />

creating constants, 308<br />

final keyword, 308<br />

statically typed languages, 67<br />

status function, 707<br />

Stop button, toolbar, 149<br />

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

strict typing, 66–72<br />

string concatenator<br />

using with print/println functions, 710<br />

String data type, 61, 65<br />

primitive data type or String object, 680<br />

String Functions section, <strong>Processing</strong> API, 682<br />

strings<br />

combines elements in array into, 682<br />

comparing values of two strings, 681<br />

composite data types, 680<br />

concatenation operator (+), 313<br />

converting into integers, 707<br />

creating, 680–681<br />

formatting numbers into, 682<br />

removing whitespace around, 682<br />

saveStrings function, 710<br />

separating into arrays, 682<br />

stroke, 698<br />

stroke function, 403, 724<br />

change color of points, 174<br />

Drawing Application example, 597<br />

multiple points in line sketch, 176<br />

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

TRIANGLES mode, beginShape(), 369<br />

strokeCap function, 198, 199, 698<br />

strokeJoin function, 228, 698<br />

strokeWeight function, 198, 698<br />

structure in coding, 58<br />

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

structuring code, 32<br />

subclasses<br />

inheritance in classes, OOP, 320<br />

initializing properties in superclass, 322<br />

object-oriented approach to color/imaging, 469<br />

using properties from superclass, 322<br />

subroutines see functions<br />

subset function, 682<br />

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

SUBTRACT mode, blend function, 463, 464, 465, 466<br />

subtraction<br />

operator precedence, 121<br />

shortcut assignment operation, 184<br />

subtractive color model, 406<br />

Subtractive ColorWheel sketch, 405<br />

suffixes<br />

.java suffix, 148<br />

.pde suffix, 147, 148<br />

.x suffix, 148<br />

using invalid suffix, 148<br />

super keyword, 322<br />

superclass constructor, 646<br />

superclasses<br />

abstract methods, 471<br />

inheritance in classes, 320<br />

object-oriented approach to color/imaging, 469<br />

using properties in, 322<br />

supersampling<br />

anti-aliasing, 214<br />

surface normal<br />

normalizing vectors <strong>and</strong>, 525<br />

Swing components<br />

incorporating in <strong>Processing</strong> sketches, 590<br />

switch statements, 81–82<br />

as alternative to if . . . else syntax, 81<br />

break statements in, 82<br />

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

enumerated types, 82<br />

value types, 82<br />

syntax, 58<br />

curly braces { }, 61<br />

dot (.) syntax, 62<br />

T<br />

Table Explode sketch, 207, 208<br />

Table Layout sketch, 203, 205<br />

tables<br />

creating table structure, 202–209<br />

polygonal table structure, 230, 232<br />

tabs, <strong>Processing</strong> window, 147<br />

creating new tab, 148<br />

Hide function, 148<br />

indicating file type, 148<br />

organizing classes using multiple tabs, 478<br />

tags<br />

block comment tags, 60<br />

tan function, 535<br />

Tan, Manny, 23<br />

tangent<br />

mnemonic for trig functions, 756<br />

Tarbell, Jared, 21<br />

ternary operator, 83<br />

tessellate function, 378<br />

Tesselated Plane sketch, 377<br />

tessellation, shapes, 374–378<br />

INDEX<br />

807

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

Saved successfully!

Ooh no, something went wrong!