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.

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

Worm, 509<br />

Yin Yang Fade, 194<br />

Yin Yang, 190<br />

<strong>Processing</strong> window, 146–158<br />

areas of window explained, 147–150<br />

collapse panes buttons, 150<br />

Edit menu, 152–153<br />

File menu, 150–152<br />

Help menu, 157–158<br />

line number, 147<br />

menus explained, 150–158<br />

message area, 147<br />

resizing entire window, 150<br />

resizing window panes, 150<br />

Sketch menu, 153–154<br />

tabs, 147<br />

text area, 147<br />

text editor, 147<br />

toolbar, 149<br />

Tools menu, 155–157<br />

<strong>Processing</strong>.org<br />

Visit <strong>Processing</strong>.org comm<strong>and</strong>, 158<br />

programming<br />

see also coding<br />

bytecode, 37<br />

equals vs. assignment, 43<br />

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

procedural programming, 58, 302<br />

programming modes, 162<br />

programming languages<br />

dynamically typed languages, 67<br />

high-level language, 31<br />

low-level language, 31<br />

object-oriented type, 32<br />

porting programs, 38<br />

procedural type, 32<br />

<strong>Processing</strong> as, 30, 31<br />

<strong>Processing</strong> Language API, 676–743<br />

statically typed languages, 67<br />

universal programming language, 37<br />

programming modes, <strong>Processing</strong> IDE, 158–162<br />

basic mode, 158<br />

continuous mode, 159–161<br />

Java mode, 162<br />

programming structures<br />

arguments, 34<br />

curly braces, 34<br />

variables, 34<br />

programs see <strong>Processing</strong> programs<br />

Progressive Tile sketch, 734<br />

PROJECT constant, 199<br />

properties<br />

accessing environmental properties, 678<br />

accessing private property, 319<br />

BurritoRecipe class, 303, 308–309<br />

description, 62, 302, 304<br />

encapsulation, 319<br />

getters <strong>and</strong> setters, 311<br />

initializing properties in superclass, 322<br />

instance properties, 308, 471<br />

private keyword, 312, 319<br />

properties declaration, 308–309<br />

public properties in <strong>Processing</strong>, 320<br />

static properties, 308<br />

use of identical keywords for function, 678<br />

using properties from superclass, 322<br />

Prudence, Paul, 23<br />

public interface of class, 391, 394<br />

public keyword, 319<br />

Puff sketch, 137, 139<br />

pushMatrix function<br />

altering matrix stack, 714<br />

creating custom 3D cube, 634<br />

Fade-Spin sketch, 409<br />

multiple translations example, 622–624<br />

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

single axis 3D rotation, 637<br />

pyramids<br />

cube to pyramid to cone to cylinder, 657–662<br />

Cube to Pyramid to Cone to Cylinder sketch, 660<br />

Pythagorean theorem, 752<br />

Q<br />

quad function, 354, 355<br />

quadratic curves<br />

see also polynomials<br />

curves in geometry, 124<br />

generating parabola with, 266<br />

number of turning points in, 124<br />

<strong>Processing</strong> generating, 125<br />

quadrilaterals<br />

Disintegrating Quad Wall sketch, 356<br />

Quad sketch, 355<br />

R<strong>and</strong>om Bounded Quads sketch, 370<br />

Simple/Complex Quads sketch, 371<br />

QUADS mode, beginShape(), 369, 370<br />

number of vertex comm<strong>and</strong>s, 371<br />

R<strong>and</strong>om Bounded Quads sketch, 370<br />

QUAD_STRIP mode, beginShape(), 372<br />

questions<br />

Frequently Asked Questions comm<strong>and</strong>, 158<br />

quotes<br />

quotation marks <strong>and</strong> whitespace, 201<br />

string literals, 64<br />

R<br />

Radial Gradient sketch, 427<br />

RadialGradient class, 474–478<br />

radians function, 228, 742<br />

INDEX<br />

803

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

Saved successfully!

Ooh no, something went wrong!