Surface pixels
The Pygame surfarray
module handles the conversion between Pygame
Surface
objects and NumPy arrays. As you may recall, NumPy can manipulate big arrays in a fast and efficient manner.
The Pygame surfarray
module handles the conversion between Pygame
Surface
objects and NumPy arrays. As you may recall, NumPy can manipulate big arrays in a fast and efficient manner.