pyrender_visualizer_5.py 303 B

1234567891011
  1. def animate(self, frame_num):
  2. # print("Rendering frame %d..."%(frame_num))
  3. self.progress.update(frame_num)
  4. color = self.render_callback(frame_num)
  5. if self.ims is None:
  6. self.ims = plt.imshow(color, animated=True)
  7. else:
  8. self.ims.set_array(color)
  9. return self.ims,