Facebook
From Evangelos Nikolaou, 1 Month ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 234
  1. size(600,600);
  2. background(255);
  3.  
  4. strokeWeight(2);
  5.  
  6. line(50, 50, 550, 50);
  7. line(50, 50, 50, 550);
  8.  
  9. fill(0);
  10. triangle(550, 40, 560, 50, 550, 60);
  11. triangle(40, 550, 60, 550, 50, 560);
  12. circle(50, 50, 8);
  13.                                          
  14. strokeWeight(1);
  15. for(int x = 1; x <= 10; x++) {
  16.   line(50, 50 + (x * 50), 550, 50 + (x * 50));
  17.   text(((x-1)), 35, ((x-1) * 50) + 53);
  18. }
  19.  
  20. for(int y = 1; y <= 10; y++) {
  21.   line(50 + (y * 50), 50, 50 + (y * 50), 550);
  22.   text(((y-1)), ((y-1) * 50) + 47, 35);
  23. }
  24.  
  25. save("activity8.png");