Re: [pygame] Modifying SVG image

2022-04-21 Thread Jim
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 S

Re: [pygame] Modifying SVG image

2022-04-21 Thread Go Peppy
Hi Jim, Yes, I'm using a memory mapped file to avoid saving any intermediate file. Here is the pseudo-code which reads the SVG file and replaces all occurrences of one color (#C0C0C0) by another (#00). String encoding is required as a memory mapped file is the byte array. There is one limitati