Skip to content

Instantly share code, notes, and snippets.

@7yl4r
Last active August 29, 2015 14:24
Show Gist options
  • Save 7yl4r/2a5de2c61e1c561dd7fc to your computer and use it in GitHub Desktop.
Save 7yl4r/2a5de2c61e1c561dd7fc to your computer and use it in GitHub Desktop.
Golly run all layers simultaneously
"""
Runs all layers simultaneously useful for viewing stacked layers.
Author: Tylar Murray ([email protected]), 2015.
"""
import golly as g
import time
while True:
for layer_n in range(g.numlayers()):
g.setlayer(layer_n)
g.step()
g.update()
time.sleep(.05) # small delay to allow update to finish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment