Is there a way to draw to another layer with PicoVector? I’ve been having fun experimenting with P8 on Presto like the good old days. I have some animated stuff going on in layer 0 with stationary text in layer 1. But set_layer() doesn’t seem to be supported for PicoVector (yet?).
The workarounds I’ve found so far are:
Draw the text to layer 0 on startup, then copy directly to layer 1 or stash somewhere for later copying (PSRAM ftw!)
Draw the text with PicoGraphics (like the Word Clock example does - this is easy and efficient but doesn’t do the nice .af fonts)
I looked through the Presto source and examples and the current PicoVector/layers PR but couldn’t find a better way.
Thanks, I tried 0.1.0 but didn’t find anything new on this front.
I think what I’ll do for now is use PicoVector to draw some fancy text just once on startup, use bitmap fonts via PicoGraphics for all subsequent text, and keep an eye on PicoVector development to see if it eventually gets layer support.
I ended up going with another solution. I quit using the built-in layer support and changed my application code to do its own layer-like drawing. This added some complexity but allowed me to get back to 64 FPS and was easier and more performant than I expected. So now I have PicoVector text on top of an animated background at 64 FPS. Pretty happy with the results.