Browse Source

fixed frame calculation... again

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

2
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)") argument_parser.add_argument('-d', dest="delay", type=int, default=300, help="delay between frames (optional)")
args = argument_parser.parse_args() args = argument_parser.parse_args()
frames = math.floor(args.secs * 1000 / args.delay) frames = int(math.floor(args.secs * 1000 / args.delay))
dimension = frame.FrameDimension(WIDTH, HEIGHT, COLOR_DEPTH, COLORS) dimension = frame.FrameDimension(WIDTH, HEIGHT, COLOR_DEPTH, COLORS)
game_of_life_animation = animation.Animation(dimension) game_of_life_animation = animation.Animation(dimension)

Loading…
Cancel
Save