What is the fastest way to build a 2d pixel data array using pygtk?

I have a numerical array of pixel data that I want to draw at interactive speeds in pygtk. Is there an easy, quick way to get my data on the screen?

+3
source share
1 answer

I don't know anything about GTK, but look at glumpy and pygarrayimage for quick rendering (and animation) based on OpenGL numpy arrays.

Pygarrayimage is more focused only on getting numpy arrays as an OpenGL texture. I don't know tons about it, but as far as I can tell, it is somewhat widely used.

, , , , . , , , . .

+2

Source: https://habr.com/ru/post/1759727/


All Articles