xxxxxxxxxx
/*-----------------------------
Vasarely
Makes an image that could easily be confused for one of Vasarely's paintings
02/01/2017
Austin DiLorenzo
dilorenzo.14@osu.edu
02/01/2017
Austin DiLorenzo
-----------------------------*/
void setup(){
int s = 100;//size
size(20*s,6*s);
for(int i = 0; i < 20*s; i = i + s){
for(int j = 0; j < 6*s; j = j + s){
float x = random(0,10);
if (x <= 1){
fill(251,86,58);
} else if (x <= 2){
fill(239,68,69);
} else if (x <= 3){
fill(46,51,95);
} else if (x <= 4){
fill(28,54,140);
} else if (x <= 5){
fill(130,148,214);
} else if (x <= 6){
fill(231,89,127);
} else if (x <= 7){
fill(250,210,18);
} else if (x <= 8){
fill(57,86,175);
} else if (x <= 9){
fill(91,89,67);
} else
fill(106,69,112);
noStroke();
rect(i,j, s,s);
float y = random(7);
int t = 45;
int v = 90;
fill(254,255,218);
if (y <= 1){
ellipse(i+s/2,j+s/2, s/2.22,s/2.22);
} else if (y <= 2){
ellipse(i+s/2,j+s/2, s/1.11,s/2.22);
} else if (y <= 3){
ellipse(i+s/2,j+s/2, s/2.22,s/1.11);
} else
ellipse(i+s/2,j+s/2, s/1.11,s/1.11);
}
}
}