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.

PROCESSING: CREATIVE CODING AND COMPUTATIONAL ART<br />

126<br />

/*<br />

Simple Cubic Curve<br />

equation: f(x) = .2*x*x*x - 50*x*x - 50*x + x-100<br />

Ira Greenberg, October 10, 2005<br />

*/<br />

float x, y;<br />

// adjusts y to fit in sketch window coordinate space<br />

float curveFittingFactor = .0001;<br />

void setup(){<br />

size(400, 400);<br />

background(255);<br />

fill(0);<br />

for (int i=-102; i

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

Saved successfully!

Ooh no, something went wrong!