// Based on the code examples on page 66 ////////////////////////////////////////////////////// modification for forkable.eu import processing.pdf.*; String outputdir = "tmp/"; /////////////////////////////////////////////////////////////////////////////////// size(180, 666); background(255); strokeWeight(0.25); strokeCap(SQUARE); beginRecord(PDF, outputdir + "page_060.pdf"); // modification for forkable.eu for (int y = 0; y <= height; y += 5) { for (int x = 0; x <= width; x += 5) { if (x % 20 == 0) { line(x, y, x-3, y-3); } else { line(x, y, x-3, y+3); } } } endRecord(); // modification for forkable.eu exit(); // modification for forkable.eu