mmeysenburg_ml-for-non-geeks/top135/top135.pde
//size(280, 280);
size(28,28);

String[] fileLines = loadStrings("top135.txt");
int[][] pixels = new int[28][28];

for(int r = 0; r < 28; r++) {
  String[] line = fileLines[r].split(",");
  for(int c = 0; c < 28; c++) {
    pixels[r][c] = Integer.parseInt(line[c].trim());
  }
}

//stroke(color(128,0,0));
//noStroke();
for(int r = 0; r < 28; r++) {
  for(int c = 0; c < 28; c++) {
    //fill(color(pixels[r][c]));
    stroke(color(pixels[r][c]));
    //rect(c * 10.0f, r * 10.0f, 10.0f, 10.0f);
    point(c, r);
  }
}

save("top135.jpg");

exit();
