Skip to content

Instantly share code, notes, and snippets.

View mattvenn's full-sized avatar

Matt Venn mattvenn

View GitHub Profile
@mattvenn
mattvenn / gist:8048066
Last active October 14, 2018 19:41
python turtle demo showing Rule 90 cellular automata
"""
author: matt venn
turtle program to demonstrate a cellular automaton called Rule 90.
http://en.wikipedia.org/wiki/Sierpi%C5%84ski_triangle
It draws patterns that have the appearance of the Sierpinski triangle
http://en.wikipedia.org/wiki/Sierpi%C5%84ski_triangle
Rules: If the current pattern is: 111 110 101 100 011 010 001 000