// In honor of Scotland's vote today, lets code a kilt! // Based on code developed by Dundee's Christopher Martin (Twitter @sspog) // Adopted by Deepak Kumar, Bryn Mawr College, September 18, 2014 void setup() { size(600, 400); smooth(); background(255); noLoop(); } void draw() { // Color of background of cloth background( #5F866C); // specify stroke color and thickness stroke(#CEAE38); strokeWeight(2); /* OK, now try out different calls below so you can get a good idea here. First try this... drawColumn(50, 20, 5); Vary the 20, down to 5... Next, try this: drawRow(50, 20, 5); Try them both together. Now you have the bsics of the Kilt building process. Now turn it into a grid. Try this grid(10, 10, 50, 5, 4); More fun: Layer them, repeat as many of the following: stroke(#CEAE38); strokeWeight(2); grid(10, 10, 50, 5, 4); Change the grid cross, squares, etc. */ //save( \"fileName.png\" ); } void drawColumn(int xPos, int strokeHeight, int d) { for (int y=0-strokeHeight; y