base = (pickle.load(open('g.pickle')) + 1) * 128
base = base[..., (None)].repeat(3, -1).astype('uint8')
surface = pygame.surfarray.make_surface(base)
screen = pygame.display.set_mode((100, 100))
screen.blit(surface, (0, 0))
pygame.display.flip()
How can I transform this (100, 100) numpy array into a grayscale sprite in pygame?