Browse Source

instead show the still frame for a little while

master
informaniac 8 years ago
parent
commit
cd60f92b2d
  1. 2
      gameOfLife.py

2
gameOfLife.py

@ -90,5 +90,7 @@ for frame in range(500):
gameBoardNextStep.append(newRow) gameBoardNextStep.append(newRow)
gameBoard = gameBoardNextStep gameBoard = gameBoardNextStep
if(gameBoard == lastGameBoard): if(gameBoard == lastGameBoard):
for i in range(20):
animation.addFrame(newFrame)
break break
writebml.writeBml(animation, '/home/pi/animations/gameOfLife.bml') writebml.writeBml(animation, '/home/pi/animations/gameOfLife.bml')

Loading…
Cancel
Save