daily pastebin goal
91%
SHARE
TWEET

Random squares

WGray8899 Oct 15th, 2018 67 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  1. /* William Gray
  2. Mrs. Regean
  3. 10/15/18 */
  4.  
  5. int y = 0;
  6. int x = 20;
  7.  
  8. size (500,500);
  9. background(255);
  10.  
  11. while( y < height) {
  12.  
  13. fill(random(255), random(255), random(255) );
  14. rect(x,y,20,20);
  15. y = y + 20;
  16. x = x + 20;
  17.  
  18. fill(random(255), random(255), random(255) );
  19. ellipse(x,y,20,20);
  20. y = y + 20;
  21. x = x + 20;
  22.  
  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
 
Top