Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 922 Bytes

README.md

File metadata and controls

28 lines (21 loc) · 922 Bytes

Elcellomata

onefifty

Elcellomata is a small tool to visualize elementeray cellular automata. The visualization is intended to be somewhat "artistic" in style (inspired by Micheal Fogelman): lines are drawn between active neighbor cells and single active cells with no neighbors are drawn with a filled circle. The rule pattern is also drawn at the bottom.

Dependencies

Elcellomata needs pycairo for drawing. Install that with:

python3 -m pip install pycairo

Example

./elcellomata.py 150 -o onefifty.svg

You can change the values of the variables GRID_WIDTH, GRID_HEIGHT, DRAW_WIDTH_STEP, DRAW_HEIGHT_STEP and RULE_PATTERN_SCALE in the script to change the size of the output to your liking.