Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PNG and PVS Support #4

Merged
merged 7 commits into from
Jul 19, 2023
Merged

PNG and PVS Support #4

merged 7 commits into from
Jul 19, 2023

Conversation

Gadgetoid
Copy link
Member

No description provided.

@Gadgetoid
Copy link
Member Author

load_sprite now lives on the custom PicoVision PicoGraphics, so you can:

    display.load_sprite("elephant.png", 1)
    display.load_sprite("elephant-indexed.png", 2)
    display.load_sprite("smile.pvs", 3)

To load sprites into specific indexes.

And then:

display.display_sprite(<slot>, <index>, <x>, <y>)

To set a specific sprite slot to an index.

Note that a "slot" is a specific "hardware" sprite slot, and an "index" refers to one of the sprites you loaded before.

@Gadgetoid Gadgetoid merged commit 483bb7d into main Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants