09.04.2016 Views

www.ebook777.com

Make_Getting_Started_with_Processing_Second_Edition

Make_Getting_Started_with_Processing_Second_Edition

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

The code that draws an ellipse is a visual preview to reveal the<br />

location of the coordinate on screen, but notice that the ellipse<br />

isn’t recorded into the file:<br />

PrintWriter output;<br />

void setup() {<br />

size(720, 480);<br />

// Create the new file<br />

output = createWriter("botArmy.tsv");<br />

// Write a header line with the column titles<br />

output.println("type\tx\ty");<br />

for (int y = 0; y

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

Saved successfully!

Ooh no, something went wrong!