Do you know what formats from_data accepts? I was hoping for something relatively simple, uncompressed RGB or RGBA based like .TGA (TARGA).
Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Posts made by whof
-
RE: pixel access in image or texture?
-
pixel access in image or texture?
Is there a way to access (and change) pixels directly in a Texture, Sprite or Image object? I want to experiment with some line drawing and polygon fill algorithms and I'm looking for something like framebuffer access. I'm aware of Image.from_data where I can load binary data directly to create an image and I could do that to create an Image for every frame, but is there another way? Speed isn't terribly important, I just want to play with the algorithms and see the results.