Generates art in the style of the 1960 piece by Francois Morellet, "Random Distribution of 40,000 Squares Using the Odd and Even Numbers of a Telephone Directory"
It's on display at the New York City Museum of Modern Art.
The placard reads:
Francois Morellet French, 1926-2016
Random Distribution of 40,000 Squares Using the Odd and Even Numbers of a Telephone Directory, 50% Blue, 50% Red
1960 Oil on canvas Enid A, Haupt Fund 2012
A cofounder of the Paris based Groupe de Recherche d'Art Visual, Morellet used geometry and mathematical progressions in his art, but he also allowed for chance operations. For this work, he divided the canvas into a grid of forty thousand squares, then instructed his wife or his sons to read numbers from the phone book out loud. Movin from the top left corner of the canvas to the bottom right, he marked a square for each even number and skipped a square for each odd one. Upon reachin the end, he colored te marked squares blue and the blank ones red.
To install with pip on macOS or Linux, run:
python3 -m pip install morellet
To install with pip on Windows, run:
py -m pip install morellet
>>> import morellet
>>> im = morellet.generate_morellet()
>>> im.show()
>>> im.save('morellet.png')
If you'd like to contribute to Francois Morellet Generator, check out https://github.com/asweigart/morellet








