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.

<strong>Processing</strong> libraries, 743<br />

<strong>Processing</strong> using libraries of classes, 303<br />

Lichtenstein, Roy, 111<br />

light, ambient, 720<br />

LIGHTEST mode, blend function, 463, 467<br />

Lights section, <strong>Processing</strong> API, 719<br />

Lights, Camera section, <strong>Processing</strong> API, 718–724<br />

LightWave, 118<br />

line function, 196–199<br />

2D <strong>and</strong> 3D versions, 196<br />

arguments, 242<br />

drawing 2D/3D lines with, 197<br />

Drawing Application example, 598<br />

vector graphics, 116<br />

line number, <strong>Processing</strong> window, 147<br />

Linear Gradient sketch, 425<br />

linear motion, 129<br />

LinearGradient class<br />

getAxis/setAxis methods, 474<br />

object-oriented approach to color/imaging, 472–474<br />

lines, 174–237<br />

see also line function<br />

algebraic expression for lines in geometry, 123<br />

applying vertex function, 219<br />

coding a grid, 185<br />

grid generated from points, 187<br />

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

concentric maze sketch, 222, 223<br />

creating hybrid shapes, 365<br />

creating line strips, 220–226<br />

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

creating table structure, 202–209<br />

creating triangle, 226, 227<br />

drawing natural (imperfect) lines, 179–184<br />

doubly r<strong>and</strong>omized particle line, 181<br />

multiple r<strong>and</strong>omized particle lines, 183<br />

r<strong>and</strong>omized point line, 180<br />

end caps for, 198, 199<br />

equation for horizontal line, 243<br />

equation for vertical line, 243<br />

fades creating space, 191–195<br />

generating diagonal line with first-degree polynomial,<br />

263<br />

joining lines, 200–202<br />

effect of various end caps, 200<br />

strokeJoin function, 228<br />

line loops, 226–229<br />

line strip sketch, 221<br />

lines <strong>and</strong> curves, 242–255<br />

maze tile sketch, 224, 226<br />

multiple points in line sketch, 176<br />

using for loop, 178–179<br />

using while loop, 177–178<br />

points considered as lines, 174<br />

radians function, 228<br />

secant lines, 128<br />

slope, 243<br />

smooth() reducing stroke weight of fine lines, 215<br />

vector graphics, 116<br />

vertex function, 209–214<br />

vertical lines generated from points, 185<br />

LINES mode<br />

applying vertex function, 219<br />

lines per inch (LPI)<br />

printing images, 116<br />

link function, 707<br />

listeners<br />

MouseListener interface, Java, 564, 565<br />

literals, 64<br />

loadFont function, 738, 739<br />

loadImage function, 433, 732, 733<br />

Loading & Displaying (image) section, 733<br />

Loading & Displaying (typography) section, 738<br />

Loading Images with set() sketch, 434<br />

loading.gif file, applet subdirectory, 150<br />

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

display window functions, 451<br />

display window pixel data, 441<br />

local scope, 87<br />

for loop, 87, 88<br />

initializing properties, 311<br />

this keyword, 383<br />

variables in loops, 183<br />

local variables, 70<br />

local vs. world coordinates, 111<br />

logarithms<br />

exponential-logarithm relationship, 750<br />

logic errors, debugging, 81<br />

logical <strong>and</strong> operator see <strong>and</strong> (logical <strong>and</strong>) operator<br />

logical not operator, 689<br />

Logical Operators section, <strong>Processing</strong> API, 689<br />

logical or operator see or (logical or) operator<br />

loop function, 491<br />

loops, 85–96<br />

do . . . while loop, 86–87<br />

for loop, 87–89<br />

multiple points in line sketch using, 178–179<br />

for-each loop, 89<br />

HoneyComb sketch, 688<br />

infinite loops, 86<br />

Iteration section, <strong>Processing</strong> API, 685<br />

line loops, 226–229<br />

noLoop function, 491<br />

recursion, 46<br />

Using Loop to Create Rectangles sketch, 686<br />

while loop, 85–86<br />

multiple points in line sketch using, 177–178<br />

lossless/lossy compression<br />

raster graphics, 115<br />

Lovelace, Ada, 10<br />

low-level language, 31<br />

INDEX<br />

793

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

Saved successfully!

Ooh no, something went wrong!