I just set up my Galactic Unicorn and am using the Galactic Paint code to draw on the screen. The web-based tool has a save button and saves the drawings as .bin files. There’s no “open” feature in the tool to reload these files and I can’t find any way to open these files in any graphics program or text editor.
How can I do it?
Same problem here for the cosmic unicorn, did you already find a solution?
The code for Galactic Paint is here: unicorn/examples/galactic_unicorn/galactic_paint/galactic_paint.py at main · pimoroni/unicorn · GitHub
Saving the picture involves writing a PicoGraphics instance to a file. I imagine that there must be some kind of conversion to bytes done in the PicoGraphics library, but I can’t immediately find documentation that covers the programming interface other than this: pimoroni-pico/micropython/modules/picographics/README.md at main · pimoroni/pimoroni-pico · GitHub
The file naming suggests that the raw pixel data is dumped, which seems to be RGB888 format, with a display size of 53x11, so maybe the file size confirms this.
Thanks for making the effort to have a look at it, but since I don’t have so much time to spend with my gadgets, and my programming skills suck, I will try my luck with painting 32 x 32 pixel images and use Cosmic Paste.
It looks like Cosmic Paste sets the pixels individually for the uploaded image. I imagine that the Galactic Paint program could be modified to provide a similar operation, and it is possible that PicoGraphics does allow the raw image data to be set, which would be a bit more elegant than setting the pixels, although the lack of relevant documentation makes it difficult to be sure.
I don’t have any compatible hardware or even a Micropython build featuring PicoGraphics, so I can’t prod the software myself.