Browse Source

fixed frame calculation

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

2
generators/gameOfLife.py

@ -47,7 +47,7 @@ if __name__ == "__main__": @@ -47,7 +47,7 @@ if __name__ == "__main__":
argument_parser.add_argument('-d', dest="delay", type=int, default=300, help="delay between frames (optional)")
args = argument_parser.parse_args()
frames = math.floor(args.secs * 1000 / 300)
frames = math.floor(args.secs * 1000 / args.delay)
dimension = frame.FrameDimension(WIDTH, HEIGHT, COLOR_DEPTH, COLORS)
game_of_life_animation = animation.Animation(dimension)

Loading…
Cancel
Save