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.

Figure 6-2. Two-point sketch<br />

Adding another point really changes things; it brings up issues of symmetry, balance, <strong>and</strong><br />

the gestalt (seeing a face), <strong>and</strong> begins to suggest a line.<br />

Now add a third point (see Figure 6-3):<br />

point(25, 50);<br />

point(50, 50);<br />

point(75, 50);<br />

Figure 6-3. Three-point sketch<br />

The line gestalt is certainly getting pretty strong now. The three dots divide top <strong>and</strong><br />

bottom <strong>and</strong> have a certain horizontal velocity as your eye sweeps across them.<br />

Now add some code to format the display window, <strong>and</strong> also add a couple more points (see<br />

Figure 6-4):<br />

size(300, 300);<br />

background(0);<br />

stroke(255);<br />

point(30, 150);<br />

point(60, 150);<br />

point(90, 150);<br />

point(120, 150);<br />

point(150, 150);<br />

point(180, 150);<br />

point(210, 150);<br />

point(240, 150);<br />

point(270, 150);<br />

LINES<br />

175<br />

6

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

Saved successfully!

Ooh no, something went wrong!