Mondrian's composition with RYB

Vaibhav Jain

Synopsis

Recreation of one of the Piet Mondrian's painting using "Processing".

Piet Mondrian was an important contributor to the De Stijl art movement and group, which was founded by Theo van Doesburg. He evolved a non-representational form which he termed Neo-Plasticism. This consisted of a grid of vertical and horizontal black lines and the use of the three primary colours Red, Yellow and Blue.

mondrian_orig
Piet Mondrian, Composition with Yellow, Blue, and Red, 1921, oil on canvas, 72.5 x 69 cm, Tate Gallery. London.

Processing Code

void setup()
{
  size (300,316);
  background(255,255,255);
}

int[] horz = {60, 110, 150, 200};
int[] vert = {30, 60, 80, 90, 160, 220, 240, 280};

void draw()
{

  noStroke();
  //fill colours
  fill(255,255,0);
  rect(0,0,30,60);  // Yellow rectangle on top left

  fill(255,0,0);
  rect(160,200,60,60);  // Bigger Red rectangle (bottom right) 

  fill(0,0,255);
  rect(30,262,60,10);  // Blue rectangle (bottom left)

  fill(255,0,0);
  rect(280,262,20,10);  // Smaller Red rectangle (bottom right)

  //horizontal lines
  stroke(0,0,0);
  strokeWeight(5);

  for(int i=0; i<4; i++) {
    line(0,horz[i],300,horz[i]);
  }

  line(160,260,240,260);
  line(160,300,240,300);

  //vertical lines

  for(int j=0; j<8; j++) {
    line(vert[j], 0, vert[j], 316);
  }

}

Processing Output

mondrian_ryb

Vaibhav Jain

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License