ConwayLife.com - A community for Conway's Game of Life and related cellular automata
Home  •  LifeWiki  •  Forums  •  Download Golly

Golly Scripts Database

Here you will find a collection of Perl and Python scripts for use with Golly. All of these scripts have been tested and are safe to run. If you have questions or concerns about one of the scripts, you may either contact the author of the script directly or ask on the ConwayLife.com forums.

Script NameDescription
3DLife.py (v1.00)  An implementation of 3D Life inspired by the work of Carter Bays. Very slow, but it does illustrate some useful scripting techniques.
benchmark.py (v1.00)  Useful for doing simple timing tests.
change-state.py (v1.00)  Changes all cells from one given state to another given state. Works in any rule with more than 2 states.
copy-as-text.py (v1.00)  Copies the current selection to the clipboard as a text pattern.
edge-to-slope.py (v1.01)  Converts a LifeOnTheEdge pattern to an equivalent LifeOnTheSlope pattern (which is created in a new layer).
fast-duplicate.py (v1.00)  Duplicates the current pattern and settings in a new layer, but doesn't copy the undo/redo history. Much faster than the Duplicate Layer menu command, especially for very large patterns.
fill.py (v1.00)  Fills the selection with the current drawing state.
getallrules.py (v1.02)  Displays all rules that the current pattern works under (e.g., the output for a glider is "B3/S23 - B3678/S0235678").
gofast.py (v1.01)  Evolves a pattern to the specified generation using the HashLife algorithm.
heat.py (v1.01)  Calculates the heat of the current pattern (assumed to be an oscillator or spaceship).
hexrot.py (v1.00)  Rotates a hexagonal neighborhood pattern by 60 degrees clockwise.
histogram.py (v1.00)  Creates a histogram plot showing the frequencies of all cell states in the current selection, if one exists, otherwise the entire pattern.
image_filter.py (v1.00)  Apply a filter, similar to Gimp effects, to an image via Golly. Requires the Python Imaging Library.
image_import.py (v1.00)  Import potentially photorealistic images as cells. Requires the Python Imaging Library.
make-ruletree.py (v1.01)  Creates and installs a .tree file using a Python transition function passed in via the clipboard.
oddWolfram.pl (v1.00)  Creates a Wn.tree file for an odd numbered Wolfram 1D rule where n is from 1 to 255.
oddWolfram_init.pl (v1.00)  Use this script after running oddWolfram.pl and creating a seed pattern.
pattern_breeder.pl (v1.00)  A generalisation of Ed Fredkin's pattern replicating XOR rule.
random-fill.py (v1.00)  Randomly fills the current selection with a specified range of live states.
save-as-mc.py (v1.00)  Golly's Save Pattern dialog always uses .rle as the default format, so this script brings up the same dialog but with .mc as the default format.
save-bmp.py (v1.00)  Saves the current selection or pattern in a .bmp file (does not require the Python Imaging Library).
save-image.py (v1.01)  Saves the current selection or pattern in a specified image file (.png/.bmp/.gif/.tif/.jpg). Requires the Python Imaging Library.
selection_density.pl (v1.00)  Calculates the density of live and dying cells in the current selection. Best used with a Generations rule.
torus.py (v1.02)  Evolves the current pattern on a torus (the torus is the currently-selected region).