Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
An evolving wallpaper for ubuntu, using the rules of Conways game of life. Sample on the wiki page.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
|Failed to load latest commit information.|
Python script to generate evolving wallpapers for Ubuntu that mutate based on the rules of Conways Game of Life. Comments and suggestions welcome. REQUIREMENTS: python PIL numpy scipy Instructions: - Load the initial cell pattern in test.lif or in any other file (change the path in the config appropriately). - The file must be a LIF 1.06 file. - Change the resolution in config.py to the resolution of your screen, change the paths to appropriate paths on your computer and change any other settings you may want to. - Run gol.py - Set the generated xml as your wallpaper. This is still a very rough implementation, needs lots of cleanup and tuning. My first time doing anything in image processing/numpy so some things may be very inefficient. The implementation of the Game of Life Simulation was taken mostly take from Dhananjay Nene's talk at inpycon2010 http://in.pycon.org/2010/talks/66-functional-programming-with-python The function to calculate Eucledian Distance Transform was taken from here: http://www.logarithmic.net/pfh/blog/01185880752 TO-DO: - [DONE] Write a parser for .lif files so loading of initial cell configuration becomes easier. - Figure out how to amplify the colour variations - Optimise the simulation