Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while 1:
- # Decode and Save Image
- imgdata = base64.b64decode(data)
- stream = io.BytesIO(imgdata)
- # Display realtime gameplay
- im = plt.imread(stream,"bmp")
- if frame is None:
- print "Start Rendering.."
- frame = plt.imshow(im)
- plt.show()
- else:
- frame.set_data(im)
- plt.pause(0.00000001)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement