Browse Source

alive color is generated randomly

master
informaniac 7 years ago
parent
commit
92432408a5
  1. 2
      generators/gameOfLife.py

2
generators/gameOfLife.py

@ -17,7 +17,7 @@ DELAY = 300 @@ -17,7 +17,7 @@ DELAY = 300
DEAD = 0
DEAD_COLOR = (0, 0, 0)
ALIVE = 1
ALIVE_COLOR = (0, 0, 255)
ALIVE_COLOR = (r.randint(0, 255), r.randint(0, 255), r.randint(0, 255))
dimension = frame.FrameDimension(WIDTH, HEIGHT, COLOR_DEPTH, COLORS)
game_of_life_animation = animation.Animation(dimension)

Loading…
Cancel
Save