neurotools.graphics.pygame module

neurotools.graphics.pygame.enable_vsync()[source]
neurotools.graphics.pygame.start(W, H, name='untitled')[source]
neurotools.graphics.pygame.draw_array(screen, rgbdata, doshow=True)[source]

Send array data to a PyGame window. PyGame is BRG order which is unusual – reorder it.

Parameters:
  • screen (object) – Object returned by neurotools.graphics.pygame.start

  • rgbdata – RGB image data with color values in [0,1]