Skip to content
New issue

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

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

Already on GitHub? # to your account

MicroPython: Blend modes and sprite/blit HFLIP/VFLIP flags #58

Merged
merged 2 commits into from
Oct 29, 2021

Conversation

Gadgetoid
Copy link
Member

Add all of the SDK blend modes into MicroPython: COPY, ALPHA, MASK, PEN, DARKEN, LIGHTEN, ADD, SUBTRACT, MULTIPLY, DISSOLVE

Add HFLIP and VFLIP flags to sprite and blit.

To flip a sprite you need to specify all eight arguments, eg:

sprite(0, 0, 0, 1, 1, 8, 8, HFLIP | VFLIP)

The above blits a single sprite, 0, in the top-left corner.

@Gadgetoid Gadgetoid merged commit b7809e3 into main Oct 29, 2021
@Gadgetoid Gadgetoid deleted the micropython-v0.1.1 branch November 1, 2021 09:38
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant