Piet Mondrain (coded version)

Research

  • Pieter Cornelis Mondriaan was a dutch painter and theoretician born in 7 March 1872 Amersfoort, Netherlands.

  • He decided to represent his art just with the colors red,blue,yellow and 3 values white,black,gray and just 2 directions : horizontal and vertical.
  • He was painting abstract and minimalist paintings.
  • He had an big impact over the art of the 20th century .

Some of his notable paintings are :

This slideshow requires JavaScript.

 Development

After I’ve researched Piet Mondrain artwork , I have the task to create a code that will make a similar sketch .

Code:

This slideshow requires JavaScript.

Output

I had to adapt the code to make it interactive so I’ve decided to add some more shapes for the second part of the code

This slideshow requires JavaScript.

Critics :

  • You can play with the random function and let the pc create its own art

Leave a comment