Sumit Dagar

Post Graduate Student,
Information and Interface Design (IID) 2008-2010
National Institute of Design,
R & D Campus, Bangalore.

e-mail: moc.liamg|dsragad#moc.liamg|dsragad
homepage: http://dagarsd.googlepages.com

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.[1]

The assignment was to create one of his works using processing language. It is "a programming language and integrated development environment (IDE) built for the electronic arts and visual design communities", which aims to teach the basics of computer programming in a visual context, and to serve as the foundation for electronic sketchbooks. [2]

The work used by me is displayed below:
Mondrian%20Composition%20with%20Yellow,%20Blue,%20and%20Red%201921.jpg

The screenshot of output:
ass1.jpg

The processing code is as follows:

/*
Create the "compilation of red, blue and yellow" work of Piet Mondrian.
*/
void setup()
{
  size (300,316);
  background(255,255,255);
}

void draw()
{

  noStroke();
  //fill colours
  fill(255,255,0);
  rect(0,0,30,60);

  fill(255,0,0);
  rect(160,200,60,60);

  fill(0,0,255);
  rect(30,262,60,10);

  fill(255,0,0);
  rect(280,262,20,10);

  //horizontal lines
  stroke(0,0,0);
  strokeWeight(5);
  line(0,60,300,60);
  line(0,110,300,110);
  line(0,150,300,150);
  line(0,200,300,200);

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

  //vertical lines
  line(30,0,30,316);
  line(60,0,60,316);
  line(80,0,80,316);
  line(90,0,90,316);

  line(160,0,160,316);
  line(220,0,220,316);
  line(240,0,240,316);
  line(280,0,280,316);

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