Mondrian Generator – Random Composition in Red, Blue, and Yellow in the style of Piet Mondrian


On Github as open source and public domain
in both R and Javascript

Try it out online ☞ Mondrian Generator

Piet Mondrian was a Dutch painter best know for his involvement in the artistic movement De Stijl or neoplasticism. De Stijl consisted of a white background, upon which Mondrian painted a grid of vertical and horizontal black lines and the three primary colors such as red, blue, and yellow. Some notible work by Mondrian include:

For more information, please see:

The scripts provided here generate random compositions in red, blue, and yellow in the style of Mondrian. Scripts were originally developed in R and later in Javascript. Scripts were developed as part of an Introduction to Computer Science for 5th to 8th grade girls class I’m putting together and teaching in order to show students how computer science can be used in, other perhaps less obvious and conventional, ways that are only limited by your imagination.

Sample random compositions generated using the online Mondrian Generator:

So, what do you think ?