Prachi Assignment1

Piet Mondrian Painting

First hands on - with Processing to implement a Piet Mondrian painting.
— Essentially grids of vertical and horizontal black lines and the use of the three primary colours in the painting.

void setup()
{
size(400,500);
background(232,224,201);
}

void draw()
{
strokeWeight(10);
line(250,0,250,500);
line(0,490,250,490);

strokeWeight(20);
line(0,130,400,130);
line(250,290,400,290);

noStroke();

fill(216,51,32);
rect(0,0,250,130);

fill(34,66,149);
rect(260,150,140,140);
}

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