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

808<br />

text<br />

Orbiting Text sketch, 740<br />

Text Area section, <strong>Processing</strong> API, 710<br />

text editor, <strong>Processing</strong> window, 147<br />

collapse panes buttons, 150<br />

Edit menu comm<strong>and</strong>s, 152<br />

resizing window panes, 150<br />

text function, 738<br />

textAlign function, 740<br />

textAscent function, 740<br />

textDescent function, 740<br />

textFont function, 738<br />

textLeading function, 740<br />

textMode function, 738, 740<br />

textSize function, 740<br />

texture function, 549, 699<br />

texture mapping see image mapping<br />

textureMode function, 549, 699<br />

textWidth function, 740<br />

this keyword<br />

initializing properties, 311<br />

local <strong>and</strong> global scope, 383<br />

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

reasons to use, 311<br />

threads, 482<br />

THRESHOLD argument, filter function, 456<br />

THRESHOLD Filter sketch, 456<br />

Tile Designer sketch, 736<br />

tiling<br />

Image Tiling sketch, 435<br />

Progressive Tile sketch, 734<br />

time<br />

Collision Detection <strong>and</strong> Timeout sketch, 491<br />

elapsed time, 491<br />

Time & Date section, <strong>Processing</strong> API, 708<br />

time functions, 491<br />

tint function, 442<br />

Tint sketch, 443<br />

using bitwise operations, 446<br />

tinting<br />

image using bitwise operations, 444<br />

toolbar, <strong>Processing</strong> window, 149<br />

buttons, 149–150<br />

Tools menu, <strong>Processing</strong> window, 155–157<br />

Archive Sketch comm<strong>and</strong>, 157<br />

Auto Format comm<strong>and</strong>, 155<br />

Color Picker comm<strong>and</strong>, 156<br />

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

Create Font comm<strong>and</strong>, 155, 582<br />

Format for Discourse comm<strong>and</strong>, 157<br />

toroids, coding in 3D, 662–671<br />

Interactive Toroid sketch<br />

helix variation, 668<br />

picture frame variation, 668<br />

polyhedron variation, 669<br />

toroid variation, 667<br />

wireframe sphere variation, 667<br />

toruses see toroids<br />

towers<br />

constructing 3D brick tower, 647–650<br />

Transform Example 1 sketch, 713<br />

Transform Example 2 sketch, 718<br />

Transform section, <strong>Processing</strong> API, 712–718<br />

Transformation Matrix sketch, 410<br />

transformations, 350–358, 618–624, 713<br />

affine transformations, 352<br />

AffineTransform class, Java, 352<br />

creating transformations, 409<br />

drawing 2D rectangle <strong>and</strong> rotating, 618<br />

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

order of transformations example, 620<br />

Transform Example 1 sketch, 713<br />

Transform Example 2 sketch, 718<br />

transistors, 761<br />

translate function<br />

affine transformations, 352<br />

coding in 3D, 618<br />

creating custom 3D cube, 628<br />

creating transformations, 409<br />

cumulative translations example, 621<br />

description, 350<br />

multiple translations example, 620<br />

resetting affine transformation matrix, 357<br />

transformations, 714<br />

translucency/transparency<br />

32-bit color <strong>and</strong>, 114<br />

alpha function, 728<br />

Alpha sketch, 407<br />

bits per pixel, 400<br />

color data structure, 762<br />

color functions, 422<br />

controlling alpha transparency, 406–408<br />

fill function, 369<br />

mask like alpha channel, 449<br />

trapezoid, area of, 753<br />

trees<br />

algorithmic tree, 45–53<br />

triangle function, 345<br />

triangles<br />

area of, 752<br />

calculating vertices of, 226<br />

create triangle sketch, 227<br />

creating, 226, 227<br />

Pythagorean theorem, 752<br />

radians function, 228<br />

R<strong>and</strong>om Triangles sketch, 369<br />

Ravenous Triangle sketch, 504<br />

Rotated Triangle sketch, 403<br />

Triangle Blur sketch, 348<br />

Triangle Flower sketch, 351, 352<br />

triangle sketch, 346<br />

Triangle Spin sketch, 350<br />

Triangle Zoom sketch, 347

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

Saved successfully!

Ooh no, something went wrong!