Skip to content

Artistically visualize elementary cellular automata

License

Notifications You must be signed in to change notification settings

whame/elcellomata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Artistically visualize elementary cellular automata

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages