Browse Source

moved blup objects to main function

master
informaniac 6 years ago
parent
commit
42941df93c
  1. 6
      generators/gameOfLife.py

6
generators/gameOfLife.py

@ -18,9 +18,6 @@ DEAD_COLOR = (0, 0, 0) @@ -18,9 +18,6 @@ DEAD_COLOR = (0, 0, 0)
ALIVE = 1
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)
def generate_rand_game_board():
board = []
@ -48,6 +45,9 @@ if __name__ == "__main__": @@ -48,6 +45,9 @@ if __name__ == "__main__":
argument_parser.add_argument('-d', dest="delay", type=int, default=300, help="delay between frames (optional)")
args = argument_parser.parse_args()
dimension = frame.FrameDimension(WIDTH, HEIGHT, COLOR_DEPTH, COLORS)
game_of_life_animation = animation.Animation(dimension)
if args.output_path is None:
argument_parser.print_help()
exit()

Loading…
Cancel
Save