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

Invert Display Colors? #217

Open
ahnyerkeester opened this issue Apr 27, 2021 · 4 comments
Open

Invert Display Colors? #217

ahnyerkeester opened this issue Apr 27, 2021 · 4 comments

Comments

@ahnyerkeester
Copy link

I'm using Python and would like to have a black background with white letters. Is there a way to do that? I've been looking through examples and such and can't find it. Thanks in advance.

@tvoverbeek
Copy link
Contributor

Prepare the image as a negative image (white on black) with PIL (Python Image Library)

@ahnyerkeester
Copy link
Author

I'm displaying text, not images. Will that still work?

@tvoverbeek
Copy link
Contributor

See the papirus-write example (https://github.com/PiSupply/PaPiRus/tree/master/bin/papirus-write) which calls the PapirusTextPos (https://github.com/PiSupply/PaPiRus/blob/master/papirus/textpos.py) for how to do this.

@ahnyerkeester
Copy link
Author

Thanks @tvoverbeek, I'm fishing through textpos.py right now! Thank you for affirming that I'm barking up the correct tree.

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

No branches or pull requests

2 participants