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

Create successful ePaper yourself

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

generating curve with second-degree polynomial, 264,<br />

265<br />

generating parabola with quadratic curve, 266<br />

interpolating Bézier curve within convex hull, 277<br />

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

pie chart, 270<br />

<strong>Processing</strong>’s curve functions, 267–298<br />

repeating distorted sine curve, 134<br />

repeating sine curve, 132<br />

spline curve using curve function, 281, 693<br />

vector graphics, 116<br />

curves in geometry, 124–131<br />

acceleration curve, 127<br />

continuity, 126<br />

cubic curve, 124<br />

deceleration curve, 127<br />

number of turning points in curves, 124<br />

quadratic curve, 124<br />

secant lines, 128<br />

smoothness, 126<br />

Curves section, <strong>Processing</strong> API, 693<br />

Curves sketch, 695<br />

curveTightness function<br />

controlling curvature using, 283<br />

soft-body dynamics, 520<br />

curveVertex function, 287, 298<br />

creating hybrid shapes, 368<br />

curve() vs. curveVertex(), 289<br />

soft-body dynamics, 520<br />

specifying curves, 698<br />

custom functions see functions, list of<br />

Cut comm<strong>and</strong>, Edit menu, 153<br />

cylinders<br />

constructing 3D brick tower, 647–650<br />

cube to pyramid to cone to cylinder, 657–662<br />

D<br />

damping effect on curves, 257<br />

damping variable, 495<br />

DARKEST mode, blend function, 460, 463<br />

data conversion, 681<br />

data hiding, 319–320<br />

public properties in <strong>Processing</strong>, 320<br />

Data section, <strong>Processing</strong> API, 678–684<br />

data types<br />

arrays, 84<br />

boolean, 65<br />

classes as, 313, 325<br />

color data type, 729<br />

Data section, <strong>Processing</strong> API, 678<br />

declaring primitive variable type, 65<br />

declaring variables, 67<br />

double data type, 309<br />

dynamically typed languages, 67<br />

float, 179, 309<br />

int, 65<br />

interfaces as, 331<br />

PGraphics, 734<br />

PImage, 433, 731<br />

Point, 346<br />

primitive types, 313, 679<br />

<strong>Processing</strong> type <strong>and</strong> anti-aliasing, 215<br />

statically typed languages, 67<br />

strict typing, 66–72<br />

String, 61, 65<br />

type casting, 67<br />

type conversions, 67<br />

data visualization, 108<br />

Davis, Joshua, 23<br />

day function, 708<br />

DBN (Design By Numbers)<br />

origin of <strong>Processing</strong>, 30<br />

reason for creating, 8<br />

debugging<br />

see also bugs<br />

logic errors, 81<br />

message area indicating errors, 147<br />

println function, 426<br />

text area, <strong>Processing</strong> window, 147<br />

deceleration curve, 127<br />

decimal values, 309<br />

decision statements see conditional statements<br />

Deck, Andy, 23<br />

declaring variables, 66<br />

decrement operator, 741<br />

degrees, converting between radians <strong>and</strong>, 758<br />

deltaX/deltaY variables<br />

asteroid shower animation, 538, 539<br />

easing, 500, 504<br />

springing, 506<br />

Descartes, René, 109<br />

deselectBtns function, 600, 602<br />

design, computer-aided, 108<br />

Design By Numbers see DBN<br />

design patterns<br />

common OOP implementations, 657<br />

detectCollision function<br />

Population Explosion sketch, 689<br />

development environments, 144–170<br />

Digital L<strong>and</strong>fill, 18<br />

directionX/directionY variable<br />

reflection, 530, 531<br />

vectors, 522<br />

directories<br />

Examples directory, 151<br />

opening directory of current sketch, 154<br />

Sketchbook directory, 151<br />

display of information, graphics, 108<br />

display size, setting, 177<br />

display window<br />

blend function, 459<br />

components, 409<br />

INDEX<br />

783

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

Saved successfully!

Ooh no, something went wrong!