Assignment 1

Piet Mondrian painting in processing


<back

Original Painting:

Piets-House-Large.jpg

Recreated Painting in Processing:

recreated1.jpg
Source Code
void setup()
{
  size(450,350);
  background(255);
}

void draw()
{
  //Draw Line
  strokeWeight(12);
  line(0,94,48,94); // H1
  line(0,282,48,282); //H2
  line(48,82,175,82); //H3
  line(175,94,450,94);//H4
  line(175,235,450,235); //H5
  line(175,282,248,282);//H6
  line(382,50,450,50);//H7
  line(48,0,48,350); //V1
  line(175,0,175,350);//V2
  line(248,94,248,350); //V3
  line(382,0,382,235); //V4

  //Draw Square
  fill(#f2f30f);
  noStroke();
  rect(54,88,115,300);
  rect(254,100,122,129);
  fill(#1f4494);
  rect(181,241,61,35);
  fill(#f52525);
  rect(388,0,62,44);
}

<back

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