Advertisement
Guest User

Untitled

a guest
Jul 7th, 2015
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. void setup() {
  2. size(200, 200);
  3. }
  4.  
  5. void draw() {
  6. background(255);
  7.  
  8. strokeWeight(3);
  9.  
  10. stroke(0, 255, 0);
  11. for (int i = 0; i < width; i+=20) {
  12. line(i, 0, i, height);
  13. }
  14.  
  15. stroke(0, 0, 255);
  16. for (int i = 0; i < height; i+=20) {
  17. line(0, i, width, i);
  18. }
  19.  
  20. stroke(255, 0, 0);
  21. noFill();
  22. rect(1, 1, width-3, height-3);
  23.  
  24. stroke(255, 0, 0);
  25. fill(255, 255, 255);
  26. rect(16, 54, 169, 102);
  27.  
  28.  
  29. fill(0, 0, 0);
  30. textFont(createFont("Impact", 52));
  31. text("DUMMY", 22, 108);
  32.  
  33. textFont(createFont("Impact", 30));
  34. text("200x200", 47, 146);
  35. }
  36.  
  37. void keyPressed() {
  38. if (key == 's') {
  39. save("dummy_200x200.png");
  40. }
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement