Category: Assignment-03-Mondrian

Mondrian Perfection

Here is the code and Mondrian render. Code provided down below.

Screen Shot 2014-09-09 at 4.04.06 PM

 

CODE

void setup(){
  size(500,500);
}
void draw() {
  background(#d6dfda);
  stroke(#000000);
  strokeWeight(5);
  //RED
  fill(#ab250a);
  rect(-3,-3,228,213);
  //WHITE
  fill(#d6dfda);
  rect(-3,215,228,105);
  rect(225,-3,width-223,213);
  rect(225,215,width-223,105);
  rect(50,325,175,195);
  rect(375,325,150,195);
  //YELLOW
  fill(#e0b808);
  rect(-3,325,53,195);
  //BLUE
  fill(#04235c);
  rect(225,325,150,150);
  filter(BLUR, 1);
}

How to Plagiarize Famous Artists Through Programming

I ended up using Processing instead of P5.js because I work on a PC but I uploaded the code with the picture also.

mondrian sketch

size (477,480);
background (0);

noStroke ();
fill(186,38,10);
rect(0,0, 213,198);

fill(211,220,215);
rect(220,0, 477,198);
rect(0,207, 210,104);
rect(220,207, 477,104);
rect(53,320, 157,160);
rect(220,462, 140,18);
rect(366,320, 111,160);
rect(472,0, 477,480);

fill(225,187,14);
rect(0,320, 47,160);

fill(6,37,92);
rect(221,320, 137,133);