Skip to content

asweigart/francois-morellet-generator

Repository files navigation

Francois Morellet Generator

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.

Example Program Output

Example #1 Morellet 1

Example #2 Morellet 2

Example #3 Morellet 3

Example #4 Morellet 4

Example #5 Morellet 5

Example #6 Morellet 6

Example #7 Morellet 7

Example #8 Morellet 8

Example #9 Morellet 9

Installation

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

Quickstart Guide

>>> import morellet
>>> im = morellet.generate_morellet()
>>> im.show()
>>> im.save('morellet.png')

Contribute

If you'd like to contribute to Francois Morellet Generator, check out https://github.com/asweigart/morellet

About

A Python program that generates art in the style of Francois Morellet's 1960 piece, "Random Distribution of 40,000 Squares Using the Odd and Even Numbers of a Telephone Directory"

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages