PNG region support for load_sprite #10
Gadgetoid
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've now- as of the latest CI build over at #8 - added the ability to load a portion of a PNG image into a sprite. You can use this by supplying a four-tuple third argument to
load_sprite
, containing an X/Y offset and a width and height.eg:
You can usually find the latest cutting-edge firmware by going here - https://github.com/pimoroni/picovision/actions/workflows/micropython.yml
And finding whatever feature branch is being worked upon, in this case the instances of "PicoVector Bring-up", just click the latest and scroll down to find the smaller, non-examples .uf2.
Beta Was this translation helpful? Give feedback.
All reactions