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.

h<strong>and</strong>ling pixel <strong>and</strong> image data, 113<br />

pixel buffer, 113<br />

<strong>Processing</strong> hiding complexity of, 114<br />

raster graphics, 115<br />

translucency, 114<br />

buffers<br />

pixel buffer, 113<br />

bugs<br />

see also debugging<br />

description, 44<br />

history of term “software bug”, 13<br />

BurritoRecipe class<br />

class declaration, 308<br />

constructors, 309–311<br />

methods, 311–318<br />

OOP example, 303–318<br />

printRecipe method, 312<br />

<strong>Processing</strong> implementation, 314<br />

properties, 308–309<br />

Burton, Ed, 516<br />

buttons<br />

adding interface elements, 579–590<br />

detecting mouse events on, 579<br />

Final Interactive Button sketch, 582–590<br />

First Button sketch, 579–580<br />

Interactive Button sketch, 580–582<br />

buttons, toolbar, 149–150<br />

bytecode, 37<br />

Java code, 145<br />

bytes<br />

saveBytes function, 710<br />

unique values from a single byte, 65, 66<br />

C<br />

Calculation section, <strong>Processing</strong> API, 741<br />

camelback notation, 63<br />

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

Cartesian coordinate system, 109<br />

converting from polar to, 228<br />

case sensitivity<br />

variable names, 65<br />

case statement<br />

Conditionals section, <strong>Processing</strong> API, 689<br />

casting<br />

type casting, 67<br />

Catmull-Rom spline implementation, 281<br />

ceil function, 741<br />

CENTER mode<br />

ellipse function, 342<br />

rect function, 341<br />

centerX/centerY variables<br />

soft-body dynamics, 519<br />

CENTER_RADIUS mode<br />

ellipse function, 342<br />

characters<br />

illegal characters, 63<br />

checkBoundaryCollision function, 552<br />

checkCollisions function, 99<br />

checkGroundCollision function, 537, 540, 541, 543, 545,<br />

550, 551<br />

checkObjectCollision function, 552, 554, 556, 558<br />

checkOverInitialNode function, 575, 576<br />

checkWallCollision function, 536, 540, 545, 550, 551<br />

Chinnathambi, Kirupa, 534<br />

chromatic intensity property, 402<br />

circles<br />

area of circle, 754<br />

circumference of circle, 754<br />

creating circles with arc(), 269<br />

class constants, 470<br />

class declaration, OOP, 308<br />

class keyword, 304<br />

creating classes, 379<br />

class properties, 308, 325<br />

classes<br />

see also Java classes<br />

abstract class declaration, 470<br />

abstract classes, 333<br />

abstract methods, 471<br />

adding custom classes, 159<br />

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

class constants, 470<br />

class declaration, 308<br />

continuous programming mode, 159<br />

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

description, 302, 303, 378<br />

Door class, 382–386<br />

getter <strong>and</strong> setter methods, 472<br />

Gradient class, 469<br />

House class, 391–396<br />

inheritance, 302, 320–323<br />

instance properties, 471<br />

interacting with, 302<br />

LinearGradient class, 472<br />

multiple constructors, 305<br />

naming conventions/rules, 304, 321<br />

object-oriented programming, 58<br />

organizing classes using multiple tabs, 478<br />

packages, 321<br />

packages solving same name class problem, 154<br />

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

public interface, 391<br />

RadialGradient class, 474<br />

Roof class, 389<br />

using classes in <strong>Processing</strong>, 317<br />

Window class, 386–389<br />

clear button<br />

Drawing Application example, 591, 593, 600, 602<br />

clicks<br />

see also mouse events<br />

detecting multiple mouse clicks, 612<br />

mousePressed function, 566<br />

mouseReleased function, 567<br />

INDEX<br />

779

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

Saved successfully!

Ooh no, something went wrong!