Skip to content

Generates unique images in the style of Piet Mondrian.

License

Notifications You must be signed in to change notification settings

gunnrunner68/mondriana

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mondriana

Python script to randomly generate images similar to the gridlike paintings of Piet Mondrian.

Basic functions

The primary script, mondriana.py generates a random grid and then further subdivides one or more randomly chosen rectangles within the grid. It then fills a few of the resulting spaces with either solid red, yellow, blue or black, leaving most of the rectangles as white space. A new painting is generated with each repetition, each being saved to a selected directory and overwriting the previous file.

The second script, updateinky.py, takes the most recent picture and displays it on a Pimoroni Inky Impression 7.3 7-color E paper display.

I've also included the necessary additions to the Pi crontab file to change the display image every ten minutes.

Purpose

This script was written as a project to create a continuously changing image for a Pimoroni Inky Impression 7.3 800x480 color e-ink display, though it could be easily modified for other formats.

Example Image

Alt Text

About

Generates unique images in the style of Piet Mondrian.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages