Advertisement
cryingrobot

Untitled

Feb 27th, 2018
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.40 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement