Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float w, h;
- color[] palette = {#A5C79B, #879C99, #B53F78, #E3146E};
- void setup() {
- size(800, 800);
- background(#D1D19C);
- stroke(0);
- noFill();
- strokeCap(SQUARE);
- w = 0;
- h = 0;
- for (int i=0; i<30;i++) {
- strokeWeight(int(random(15, 40)));
- stroke(palette[int(random(4))], random(150,220));
- arc(width/2, height/2, w, h, i*PI/2, i*PI/2+random(PI/4,PI));
- h += 25;
- w += 25;
- }
- }
- void draw() {
- }
- void keyPressed() {
- save(random(232323)+".png");
- }
- void mouseClicked() {
- setup();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement