07.01.2013 Views

Fractal.Invaders, Substrate (Interview with Jared Tarbell) - Processing

Fractal.Invaders, Substrate (Interview with Jared Tarbell) - Processing

Fractal.Invaders, Substrate (Interview with Jared Tarbell) - Processing

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

(x1,y1)<br />

(x,y)<br />

(x1,y1)<br />

(x2,y2)<br />

(x2,y2) (x3,y3)<br />

(x1,y1) (x4,y4)<br />

(x2,y2) (x3,y3)<br />

(x,y)<br />

width<br />

height<br />

(x,y)<br />

height<br />

width<br />

(x1,y1) (cx1,cy1)<br />

(x2,y2) (cx2,cy2)<br />

point(x, y)<br />

line(x1, y1, x2, y2)<br />

triangle(x1, y1, x2, y2, x3, y3)<br />

quad(x1, y1, x2, y2, x3, y3, x4, y4)<br />

rect(x, y, width, height)<br />

ellipse(x, y, width, height)<br />

bezier(x1, y1, cx1, cy1, cx2, cy2, x2, y2)<br />

Geometry primitives<br />

<strong>Processing</strong> has seven functions to assist in making simple shapes. These images show the format for each. Replace<br />

the parameters <strong>with</strong> numbers to use them <strong>with</strong>in a program. These functions are demonstrated in codes 2-04 to 2-22.

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

Saved successfully!

Ooh no, something went wrong!