06.01.2013 Views

Learning Processing: A Beginner's Guide to Programming Images ...

Learning Processing: A Beginner's Guide to Programming Images ...

Learning Processing: A Beginner's Guide to Programming Images ...

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.

450 Index<br />

Join( ) function 325 , 326 , 327<br />

Jump( ) function 281<br />

Key presses 38–40<br />

KeyPressed( ) function 39 , 93<br />

Keywords see Reserved words<br />

Length, of array 149<br />

Length( ) function 304 , 323 , 334<br />

Lerp( ) function 321<br />

Lib 396<br />

LibCV 298<br />

Libraries:<br />

built-in libraries 196<br />

contributed libraries 196–8<br />

defi nition 195<br />

Line( ) function 24 , 104 , 195 , 227 , 260<br />

Live video 101 , 274<br />

LiveInput 388–90<br />

LoadFont( ) function 307<br />

LoadImage( ) function 254 , 255<br />

LoadPixels( ) function 261 , 263 , 304<br />

LoadStrings( ) function 327 , 339<br />

Local variable 93–5<br />

“ Logical and ” 68<br />

Logical opera<strong>to</strong>rs 67–9<br />

“ Logical or ” 68<br />

Loop( ) function 114 , 279–80<br />

Loops 83<br />

exit conditions 88–90<br />

“ for ” loop 90–3<br />

global variable 93–5<br />

iteration 83–5<br />

local variable 93–5<br />

loop inside the main loop 95–7<br />

“ while ” loop 85–8<br />

Zoog grows arms 97–9<br />

MakeRequest( ) 345<br />

Mandelbrot set 216<br />

Mathematics 201<br />

angles 210–11<br />

event probability, in code 205–7<br />

modulus 202–3<br />

oscillation 214–16<br />

Perlin noise 207–10<br />

probability review 204–5<br />

and programming 201–2<br />

random numbers 203–4<br />

recursion 216–20<br />

trigonometry 212–14<br />

two-dimensional arrays 220–4<br />

Matrix, defi nition of 241<br />

Methods see Functions<br />

Microphone, as sound sensor 388<br />

Millis( ) function 176<br />

Minim library 379 , 381<br />

Mirrors 281<br />

Modulo opera<strong>to</strong>r 202–3<br />

Mosaic 312–14<br />

Motion detection 294–7<br />

Mouse, variation with 34–8<br />

Mouse clicks 38–40<br />

MouseDragged( ) function 366<br />

MousePressed( ) function 39 , 66 , 67 , 68 , 72 , 93 , 340<br />

Move( ) function 109 , 179 , 193<br />

Movie object 279–81<br />

MovieMaker 401–3<br />

MP3 fi les 386<br />

Multiple rollovers 69–70<br />

Multi-user communication 362<br />

client 366–7<br />

server 362–5<br />

server and client 368<br />

MyVar, error messages of 438–9<br />

NetEvent( ) function 340 , 341 , 345<br />

New PImage( ) 254<br />

Newline character 355–6<br />

NewTab option 128 , 129<br />

NoFill( ) function 11 , 232<br />

Noise( ) function 208<br />

NoLoop( ) function 114<br />

NoSmooth( ) function 27<br />

NoStroke( ) function 11<br />

NullPointerException error 127 , 440–1<br />

Object-oriented programming (OOP) 121 , 407<br />

encapsulation 407–9<br />

inheritance 410–13<br />

overloading 419<br />

polymorphism 416–18<br />

shapes 413–16<br />

Object-oriented Zoog 135–7<br />

Objects 122<br />

arrays of 152–4<br />

construc<strong>to</strong>r arguments 131–4<br />

cookie cutter, writing 124–5<br />

data types 135<br />

object-oriented Zoog 135–7<br />

with OOP 121–2<br />

usage 122–4<br />

details 125–7<br />

with tab 127–31

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

Saved successfully!

Ooh no, something went wrong!