Animates games produced by the Texas Hold 'Em Simulator.
python3 renderer.py <json_log_file>
This renders the game into a series of frames in the frames directory as PNG files. The frames can then be converted into a video using ffmpeg:
ffmpeg -framerate 24 -i 'frames/img-%016d.png' -vf scale=1920:1080:flags=neighbor -c:v libx264 -profile:v baseline -level 3.0 -pix_fmt yuv420p output.mp4
Note: the passed framerate should be the same as TARGET_FRAMERATE in constants.py.