Category: Assignment-03-Mondrian

Assignment-03-Mondrian

While looking at some of Piet Mondrian’s works in preparation for this assignment, I noticed that the most famous of his works were just made of varying sized rectangles. So I sought out to develop a small program, which with a bit of manual work could recreate a scalable Mondrian painting. Here is my recreation of the assigned piece:

MondrianRec

Here is my code, it contains a scalable rectangle class which can properly recreate and rectangule based drawing of any size with pixel data:
Mondrian_code

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

Mondrian

Screen-Shot-2014-09-09-at-9.46.57-PM

void setup() {
  size(500, 500);
}

void draw() {
  background(219,229,221);
  fill(186,45,15);
  rect(0,0,200,200);
  fill(255,190,26);
  rect(0,300,50,200);
  fill(2,31,91);
  rect(200,300,175,175);
  strokeWeight(9);
  line(200,0,200,500);
  line(0,200,500,200);
  line(0,300,500,300);
  line(50,300,50,500);
  line(200,475,375,475);
  line(375,300,375,500);
}