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.

area of triangle, 752<br />

circumference of circle, 754<br />

curves, 124–131<br />

distance formula, 752<br />

history of, 123<br />

lines, 123<br />

math for graphics, 123–131, 751–755<br />

perimeter of rectangle, 754<br />

points, 123<br />

Pythagorean theorem, 752<br />

gestalt, 42<br />

get function, 436, 437, 731<br />

Drawing Application example, 597, 600<br />

Image Encryption sketch, 437<br />

returning value as color data type, 729<br />

get method, PImage, 440, 731<br />

get methods<br />

accessing private property, 319<br />

BurritoRecipe class example, 303<br />

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

getter methods, OOP, 472<br />

private keyword on properties, 312<br />

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

getClickCount method, 612<br />

getters see get methods<br />

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

getXMotion/getYMotion functions, 101<br />

global environment properties<br />

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

global scope, 87<br />

initializing properties, 310<br />

this keyword, 383<br />

variables in loops, 183<br />

global variables, 70<br />

Drawing Application example, 592<br />

Many Bouncing Balls program, 93<br />

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

glyphs<br />

incompatibility of installed fonts, 155<br />

Goldberg, Ken, 23<br />

gradient blur effect, 348<br />

Gradient class<br />

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

gradients, 424–429<br />

continuous radial gradient, 88<br />

LinearGradient class, 472–474<br />

Linear Gradient sketch, 425<br />

Mask the Sky with Gradient sketch, 450<br />

pixel gradients, 424<br />

Radial Gradient sketch, 427<br />

RadialGradient class, 474–478<br />

ROY G BIV sketch, 417<br />

set function, 424<br />

setGradient function, 426<br />

stepped radial gradient program, 68<br />

Wave Gradient sketch, 429<br />

graphic formats, 115–117<br />

raster/vector graphics, 115<br />

graphical user interfaces see GUIs<br />

graphics, 108–141<br />

3D on 2D surface, 109<br />

animation, 108, 117–119<br />

computer-aided design, 108<br />

controlling graphics context, 726<br />

coordinate systems, 109–111<br />

createGraphics function, 734, 735<br />

data visualization, 108<br />

display of information, 108<br />

drawing methods, 112<br />

image refresh rate, 111<br />

images, 111–113<br />

interactivity, 139–141<br />

math for graphics, 119–138<br />

algebra, 120–122<br />

curves, 124–131<br />

geometry, 123–131<br />

lines, 123<br />

points, 123<br />

trigonometry, 131–138<br />

pixels, 113–115<br />

points, 174–176<br />

rectMode function, 110<br />

registration point, 110<br />

simulation, 108<br />

vector graphics, 116–117<br />

Graphics class, 726<br />

Graphics object, 409<br />

paint method, 726<br />

graphics context, controlling, 726<br />

gravity<br />

acceleration with gravity sketch, 494<br />

GRAY argument, filter function, 457<br />

GRAY Filter sketch, 457<br />

grayscale, 400<br />

greater than operators, 73<br />

green component<br />

color data structure, 762<br />

specifying color value, 728<br />

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

grids<br />

coding a grid, 185<br />

grid generated from points, 187<br />

grid with spaced-out points, 188<br />

vertical lines generated from points, 185<br />

Ground class<br />

asteroid shower animation, 535, 538, 540<br />

GUIs (graphical user interfaces), 108<br />

<strong>Processing</strong> GUI libraries, 590<br />

<strong>Processing</strong> IDE, 144–170<br />

Gunter, Edmund, 9<br />

INDEX<br />

789

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

Saved successfully!

Ooh no, something went wrong!