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

798<br />

coding in 3D, 616<br />

mapping image onto surface of shape, 699<br />

packages<br />

classes <strong>and</strong>, 321<br />

java.awt.* package, 725<br />

javax.swing.* package, 725<br />

organizing code libraries into, 154<br />

Page Setup comm<strong>and</strong>, File menu, 152<br />

paint method, Graphics class, 726<br />

Painting Stripes sketch, 485, 487<br />

paintOutlines function, 159<br />

palettes see color palettes<br />

parabola with quadratic curve, 266<br />

parallelogram, area of, 753<br />

param function, 707<br />

parameterized function, 102<br />

parameters<br />

arguments <strong>and</strong>, 209<br />

class constructors, 310<br />

description of use of term, 97<br />

parentheses<br />

curly braces { }, 61<br />

operator precedence, 121<br />

parentheses defining functions, 60<br />

properties of operators, 122<br />

parseInt method, Integer class, 707<br />

particle waves, curves as, 260<br />

particles see points<br />

Paste comm<strong>and</strong>, Edit menu, 153<br />

patterns<br />

see also wave patterns<br />

Puff sketch, 137, 139<br />

.pde suffix, 147<br />

pencil tool, 591, 598<br />

Penner, Robert, 23<br />

period character<br />

dot (.) syntax, 62<br />

Perlin, Ken, 23, 743<br />

persistence of vision, 117<br />

perspective, 719<br />

coding in 3D, 618<br />

P3D mode, 164<br />

Peters, Keith, 23, 532, 552<br />

PFont section, <strong>Processing</strong> API, 737<br />

PGraphics data type, 734<br />

Photoshop filter, problem with, 5<br />

Physical Language Workshop (PLW), 20<br />

physics, simulating, 492–499<br />

pi, 757<br />

Pickett circular slide rule, 9<br />

pie charts, 270<br />

pie wedge shapes within table structure, 271<br />

PImage data type, 433, 434, 731<br />

arrayCopy function, 446<br />

bitwise operations, 446<br />

blend method, 459, 460<br />

get method, 440<br />

mask method, 448<br />

methods, 440–443<br />

pixels[] array property, 440<br />

rendering object to screen, 195<br />

returning color of PImage, 436<br />

set method, 440<br />

Pitaru, Amit, 23<br />

pixel array mask, 450<br />

Pixel Array Mask sketch, 451<br />

pixel buffer, 113<br />

pixel functions, 429–432<br />

pixel gradients, 424<br />

pixels, 113–115<br />

24-bit color, 113<br />

bits per pixel for color, 400<br />

Color B<strong>and</strong>ing with pixels[] sketch, 431<br />

Color Static sketch, 432<br />

creating lines with pixels, 195–196<br />

description, 109<br />

display window functions, 440<br />

h<strong>and</strong>ling pixel <strong>and</strong> image data, 113<br />

INVERT argument, 453<br />

loadPixels function, 429, 431, 732<br />

performing bitwise operations on color, 763<br />

pixels[] array, 430, 440<br />

points in geometry, 123<br />

registration point, 110<br />

returning color of single pixel, 436<br />

updatePixels function, 431, 732<br />

vector graphics, 116<br />

Pixels array (single white pixel) sketch, 430<br />

Pixels section, <strong>Processing</strong> API, 732<br />

pixels[] array, 430, 440<br />

pixels[] array property, PImage, 440, 732<br />

Pixilate sketch, 441<br />

platforms<br />

porting programs, 38<br />

Platforms section<br />

Getting Started comm<strong>and</strong>, Help menu, 157<br />

plot function, 262<br />

plotters<br />

point recorder/plotter sketch, 211<br />

scribble plotter sketch, 215, 218<br />

plotting shapes, 358–365<br />

using Point class, Java, 346<br />

pmouseX/pmouseY variable, 500<br />

Pockets Full of Memories, 18<br />

Point class, Java, 123<br />

asteroid shower animation, 548<br />

Bézier curve showing anchor/control points, 274<br />

data types, 346<br />

plotting, 346<br />

point function, 242<br />

point of inflection, 266<br />

Point3D class<br />

coding toroids in 3D, 663<br />

constructing 3D brick tower, 647

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

Saved successfully!

Ooh no, something went wrong!