SHARE
TWEET

Untitled

cryingrobot Feb 27th, 2018 126 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int i = 0;
  2. int x = 10;
  3.  
  4. void setup() {
  5.    size(600,600);
  6.    background(0);
  7. }
  8.  
  9. void draw() {
  10.   frameRate(5);
  11.   for(int a = 15 ; a < 585 ; a = a + 20) {
  12.     for(int i = 15 ; i < 585 ; i = i + 20) {
  13.       fill(0,random(0,200),random(0,200));
  14.       noStroke();
  15.       rect(i,a,10,10);
  16.     }
  17.   }
  18. }
  19. //╮( ˘_˘ )╭
  20. void mousePressed (){
  21.   fill(random(0,200),0,random(0,200));
  22.   redraw();
  23. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top