Piet Mondrian art recreation

Objective :

To recreate the work of Piet Mondrian using processing language.

Original Piet Mondrian work selected:

w1

Processing Language code for the work:

void setup()
{
size(300,400);
background(252,253,254);

}

void draw()
{
strokeWeight(6);
line(80,0,80,400);
line(0,280,300,280);
line(250,280,250,400);
line(250,330,300,330);
line(300,280,300,330);
line(0,0,0,400);
line(0,0,80,0);
line(80,400,250,400);

strokeWeight(8);
line(0,100,80,100);

strokeWeight(6);
fill(251,28,18);
rect(80,0,220,280);

fill(65,86,205);
rect(0,280,80,120);

fill(251,251,143);
rect(250,330,50,70);

}

Processing code output:

p1

Dhananjay Govekar homepage

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