Assignment 3 : Mondrian

Generative art is hard to visualize at first, but once one gets the hang of it, numbers and coordinates can be just as expressive (and then some) as traditional mediums of art. Using the compiler, that magical ethereal entity which makes all coding possible, I can turn these instructions:

void setup(){
size(800,800);
background(0);
noStroke();
fill(255,0,0);
rect(0,0,340,300);
fill(255);
rect(360,0,500,300);
rect(0,320,340,190);
rect(360,320,500,190);
rect(90,530,250,500);
rect(630,530,500,500);
rect(360,780,250,230);
fill(0,0,255);
rect(360,530,250,230);
fill(255,255,0);
rect(0,530,75,500);
}
void draw(){
}

into this colorful image:
mi mondrian

Comments are closed.