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.

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

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

loading images, 432<br />

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

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

PImage data type, 731<br />

PImage methods, 440–443<br />

pixels, 113–115<br />

printing images, 115<br />

<strong>Processing</strong> image types, 432<br />

refresh rate, 111<br />

vector graphics, 116<br />

working with large images, 433<br />

imaging, 423–478<br />

bitwise operations, 443–448<br />

gradients, 424–429<br />

imaging filters, 448–467<br />

object-oriented approach to, 468–478<br />

saving files, 467<br />

implements keyword, 327<br />

multiple inheritance of interface, 332<br />

Import Library comm<strong>and</strong>, Sketch menu, 154<br />

in-betweens, animation, 118<br />

Integer class, Java<br />

parseInt method, 707<br />

incidenceVectorX variable, 531<br />

incidenceVectorY variable, 531<br />

increment operator, 741<br />

indentation in code, creating, 62<br />

index.html file<br />

applet subdirectory, 150<br />

indexed color, 114<br />

infinite loops, 86<br />

recursion, 347<br />

inheritance, OOP, 320–323<br />

applying inheritance, 321–323<br />

assigning object reference to extended class, 323<br />

extends keyword, 322<br />

initializing properties in superclass, 322<br />

introduction, 302<br />

is-a relationship, 324<br />

multiple inheritance, 326<br />

multiple inheritance of interface, 326, 331<br />

Object class, 321<br />

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

OOP inheritance diagram, 320<br />

super keyword, 322<br />

using properties from superclasses, 322<br />

initializing variables, 66<br />

Input section, <strong>Processing</strong> API, 702–709<br />

instance properties, OOP<br />

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

properties declaration, 308<br />

static properties compared, 308<br />

instance variables<br />

this keyword, 384<br />

instances of classes see objects<br />

instantiation, OOP, 680<br />

creating Door object, 386<br />

int data type, 65<br />

memory allocation for, 66<br />

rounding on converting float to int, 184<br />

using float type to return float, 179, 662<br />

int function, 428<br />

bug in using, 681<br />

integers<br />

converting strings to integers, 707<br />

interactivity, 139–141, 564–613<br />

adding interface elements, 579–590<br />

code art, 564<br />

creating drawing application, 590–603<br />

event detection, 139<br />

event h<strong>and</strong>ling, 140<br />

interactivity simplified by <strong>Processing</strong>, 564–565<br />

keyboard events, 603–611<br />

mouse events, 565–590<br />

interfaces, 326–328<br />

see also GUIs<br />

adding interface elements, 579–590<br />

data types <strong>and</strong>, 331<br />

description, 326<br />

implements keyword, 327<br />

interacting with classes, 302<br />

interface to <strong>and</strong> implementation of functions, 319<br />

multiple inheritance of, 326, 331<br />

polymorphism with interfaces, 331–336<br />

<strong>Processing</strong> application interface, 146<br />

public interfaces, 302<br />

reasons for using, 328<br />

interpolation, 420<br />

INVERT argument, filter function, 452, 454<br />

INVERT Filter sketch, 452<br />

is not equal to (!=) expression, 313<br />

is-a relationship, 324<br />

isInitialNode function, 577, 578<br />

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

J<br />

JAR (Java Archive) file, 150<br />

Java<br />

appending data to array, 683<br />

bytecode, 145<br />

Collections framework, 39<br />

cross-platform functionality, 144<br />

equals method, 681<br />

exception h<strong>and</strong>ling, 378<br />

final keyword, 199<br />

history of, 36–39<br />

how Java works, 37<br />

interactivity simplified by <strong>Processing</strong>, 564<br />

jikes compiler, 145<br />

INDEX<br />

791

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

Saved successfully!

Ooh no, something went wrong!