09.04.2016 Views

www.ebook777.com

Make_Getting_Started_with_Processing_Second_Edition

Make_Getting_Started_with_Processing_Second_Edition

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

elements, in arrays, 152<br />

ellipseMode ( ) function, 22<br />

ellipses, drawing, 9, 17-19<br />

else blocks, 58-60<br />

embedded for loops, 44<br />

endshape ( ) function, 28<br />

Examples and Reference, 11-12<br />

exporting sketches, 11<br />

expressions, 39<br />

F<br />

fields, 136, 138<br />

fill ( ) function, 23, 25<br />

float data, 104, 131, 135, 207<br />

float variable, 37<br />

fonts, 94-97<br />

drawing text in a box, 96<br />

drawing with, 95-97<br />

for loops, 40-45<br />

creating rows and columns with,<br />

45<br />

embedded, 44<br />

filling arrays with values in,<br />

155-156<br />

for fanning out lines, 44<br />

for halftone dots, 46<br />

for kinking lines, 44<br />

for pins and lines, 46<br />

for quick code changes, 43<br />

frame rates, 49, 103-104<br />

frames, 103<br />

functions, 121-133<br />

basics of, 122-123<br />

coding tips, 202<br />

creating, 124-130<br />

defined, 13<br />

return values, 130<br />

G<br />

getFloat ( ) method, 168<br />

getInt ( ) method, 168, 174<br />

getString ( ) method, 174<br />

getting help, xv<br />

GIF image format, 93<br />

gray values, 25<br />

H<br />

halftone dots, creating, 45<br />

headers, in Table data, 170<br />

I<br />

if blocks, 57-60<br />

image ( ) function, 90<br />

images<br />

drawing to screen, 90-92<br />

formats, 93-94<br />

image/PDF export, 189-192<br />

resizing, 92-93<br />

sequences of, 160-161<br />

transparency , 93-94<br />

working with multiple, 91<br />

index values, 152<br />

initialization statement, 41<br />

int data, 135, 207<br />

J<br />

JPEG image format, 93<br />

JSON data, and APIs, 177-180<br />

JSON files, 172-176<br />

K<br />

key variables, 67<br />

keyCode variable, 69<br />

keypressed variable, 66-70<br />

keys, tapping, 67-68<br />

L<br />

libraries<br />

Library Manager, 184<br />

Serial Library, 193<br />

Sound audio library, 184<br />

lines<br />

drawing, 14-16<br />

drawing continuous, 53<br />

setting thickness of, 53-54<br />

smoothing with easing, 55<br />

Linux installation, 7<br />

loadImage ( ) function, 90<br />

loadTable ( ) function, 167<br />

local variable, 211<br />

Index 215

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

Saved successfully!

Ooh no, something went wrong!