martes, 12 de abril de 2016

processing 3



float startAngle = 0;
float angleBump= 0;
color Color1 = color (180, 95, 10);
color Color2 = color (0, 80, 110);

void setup () {
  size (600,600);
  smooth();
}

void draw () {
 background(Color1);
  noStroke();
  float radius = 200;
  float angle = startAngle;
 
  while (radius > 0) {
   
    fill(255);
    ellipse(100,100,radius,radius);
    ellipse(300,100,radius,radius);
    ellipse(300,300,radius,radius);
    ellipse(300,500,radius,radius);
   
    fill(Color2);
    arc(100, 100, radius, radius, angle, angle+PI);
       arc(300, 100, radius, radius, angle, angle+PI);
          arc(300, 300, radius, radius, angle, angle+PI);
             arc(300, 500, radius, radius, angle, angle+PI);
             radius-= 30;
             angle += angleBump;
            
  }

startAngle += .01;
angleBump += .010;
}



No hay comentarios.:

Publicar un comentario