Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 30th, 2012  |  syntax: None  |  size: 0.47 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. void setup()
  2. {
  3.   size(400,400);
  4.   background(255);
  5. }
  6.  
  7. void draw()
  8. {
  9.  
  10. int numRows = 20;
  11. int boxSize = 20;
  12. int numColumns = width/boxSize;
  13.  
  14.  
  15. for (int i = 0; i < numColumns; i = i+1) {
  16.  for (int j = 0; j < numRows; j = j+1){
  17.    rect(i*numRows,j*boxSize,boxSize,boxSize);
  18.  }
  19.  }
  20.  
  21. font = loadFont("ArialUnicodeMS-48.vlw");
  22. textFont(font);
  23. text("word", 15, 30);
  24. fill(0, 102, 153);
  25. text("word", 15, 60);
  26. fill(0, 102, 153, 51);
  27. text("word", 15, 90);
  28.  
  29. }