From 7c31f7d5c225a89b3a3447cdd88492911b9cba73 Mon Sep 17 00:00:00 2001 From: informaniac Date: Fri, 22 Dec 2017 00:00:50 +0100 Subject: [PATCH] fixed frame calculation --- generators/gameOfLife.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generators/gameOfLife.py b/generators/gameOfLife.py index 1b01e60..9156965 100755 --- a/generators/gameOfLife.py +++ b/generators/gameOfLife.py @@ -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)