def imdisplay(imarray, screen=None):
 a = pg.surfarray.make_surface(imarray.swapaxes(0, 1))
 if (screen is None):
  screen = pg.display.set_mode(imarray.shape[:2][::(-1)])
 screen.blit(a, (0, 0))
 pg.display.flip()

def imdisplay ( imarray , screen = None ) : a = pg . surfarray . make_surface ( imarray . swapaxes ( 0 , 1 ) ) if ( screen is None ) : screen = pg . display . set_mode ( imarray . shape [ : 2 ] [ : : ( - 1 ) ] ) screen . blit ( a , ( 0 , 0 ) ) pg . display . flip ( )
splashes the given image array on the given pygame screen .