Advertisement
xeromino

exploded_arcs

Dec 25th, 2013
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.53 KB | None | 0 0
  1. float w, h;
  2. color[] palette = {#A5C79B, #879C99, #B53F78, #E3146E};
  3.  
  4. void setup() {
  5.   size(800, 800);
  6.   background(#D1D19C);
  7.   stroke(0);
  8.   noFill();
  9.   strokeCap(SQUARE);
  10.   w = 0;
  11.   h = 0;
  12.  
  13.   for (int i=0; i<30;i++) {
  14.     strokeWeight(int(random(15, 40)));
  15.     stroke(palette[int(random(4))], random(150,220));
  16.     arc(width/2, height/2, w, h, i*PI/2, i*PI/2+random(PI/4,PI));
  17.     h += 25;
  18.     w += 25;
  19.   }
  20. }
  21.  
  22. void draw() {
  23. }
  24.  
  25. void keyPressed() {
  26.   save(random(232323)+".png");
  27. }
  28.  
  29. void mouseClicked() {
  30.   setup();
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement