Princeton University
Mondrian Recursive Graphics
Computer science student
|  see full project

Melding my interests in technology and art, I created a recursive graphical drawing that was featured on Princeton’s Computer Science website. The program takes a single integer command-line argument that controls the depth of recursion, staying within the drawing window when n is between 1 and 7. My program models de Stijl artist Piet Mondrian by selecting a random point at which to fracture the previous, larger rectangle into 4 smaller rectangles. An additional function fills the rectangles with Mondrian’s chosen HSV values for red, yellow, and blue, while retaining white as the most likely option. This produces the semblance of Mondrian’s canvases, while obeying recursive laws.

No items found.