-
Notifications
You must be signed in to change notification settings - Fork 1
Use bitmap subscr #1
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
Use bitmap subscr #1
Conversation
to show the complete color wheel.
…uit_CircuitPython_ImageLoad into use_bitmap_subscr
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let me know if you need help with lint. It can be pretty picky.
palette[value] = bytes(b''.join([c_bytes[2:3], | ||
c_bytes[1:2], | ||
c_bytes[0:1], | ||
c_bytes[3:1]])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
faster?
palette[value] = bytes([c_bytes[2], c_bytes[1], c_bytes[0], c_bytes[3]])
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added code in bmp/indexed.py to swap the red and green bytes. Also added a color whell image to images and an example script to load it.