[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Modifying SVG image



I don't know the answer to your question but if you are concerned with the delay in reading/modifying/writing/reading you can speed that up by using a RAM disk.

Jim

On 4/11/22 13:02, Go Peppy wrote:
Hi,

The following command works fine in Pygame 2:
pygame.image.load("test.svg")
It loads an SVG file and creates a Surface object.

I need to change colors in that SVG image/file. As this is a text file this is a pretty simple task. The only way I see is to load an SVG file, change colors, save file and then load using pygame.image.load. Is it possible to accomplish that task without creating/saving a new SVG file?

Thanks in advance!