Guest User

Untitled

a guest
Feb 19th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. float r = 100;
  2. float g = 150;
  3. float b = 200;
  4. float a = 200;
  5.  
  6. float diam = 20;
  7. float x =100;
  8. float y = 100;
  9.  
  10. void setup () {
  11. size(500, 500);
  12. background(255);
  13. }
  14.  
  15. void draw () {
  16.  
  17. r = random(255);
  18. g = random(255);
  19. g = random(255);
  20. b = random(255);
  21. diam = random(20);
  22. x = random(width);
  23. y = random(height);
  24.  
  25. noStroke();
  26. fill( r, g, b, a);
  27. ellipse(x, y, diam, diam);
  28. }
Add Comment
Please, Sign In to add comment