/** * Automodernists - autoalbers - Vincent Bruijn - 2010 * In an essay called "The Color in My Painting," introducing an exhibition of * his works at the North Carolina Museum of Art in 1962, Albers wrote of his colors: * They are juxtaposed for various and changing visual effects. They are to challenge * or to echo each other, to support or oppose one another. The contacts, respectively * boundaries, between them may vary from soft to hard touches, may mean pull and push * besides clashes, but also embracing, intersecting, penetrating. */ int r = int(random(255)); int g = int(random(255)); int b = int(random(255)); void setup() { size(500,500); smooth(); background(255); drawHomage(); } void draw() { if (frameCount % 500 == 0) { r = int(random(255)); g = int(random(255)); b = int(random(255)); drawHomage(); } } void drawHomage() { color[] c = { color(r,random(255),random(255)), color(random(255),g,b), color(r,random(255),b), color(random(255),g,random(255)) }; noStroke(); fill(c[0]); rect(0,0,width,height); fill(c[1]); rect(55,80,390,390); fill(c[2]); rect(97,157,291,291); fill(c[3]); rect(148,228,193,193); }