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

epd2in13: use better black/white approximation #616

Merged
merged 1 commit into from
Nov 9, 2023

Conversation

aykevl
Copy link
Member

@aykevl aykevl commented Nov 6, 2023

The previoius behavior was that entirely black pixels were treated as white, and anything else as black. That's at least counter-intuitive.
This patch changes the behavior to actually look at the color values and use a cutoff around medium gray: darker colors are treated as black, and lighter colors are treated as white.

This is a backwards incompatible change, but I think this behavior makes a lot more sense.

The previoius behavior was that entirely black pixels were treated as
white, and anything else as black. That's at least counter-intuitive.
This patch changes the behavior to actually look at the color values and
use a cutoff around medium gray: darker colors are treated as black, and
lighter colors are treated as white.

This is a backwards incompatible change, but I think this behavior makes
a lot more sense.
Copy link
Member

@conejoninja conejoninja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with this change, it will break things, but it makes sense

@deadprogram
Copy link
Member

Thanks for improving this @aykevl and to @conejoninja for review. Now merging.

@deadprogram deadprogram merged commit 3e64e75 into dev Nov 9, 2023
1 check passed
@deadprogram deadprogram deleted the epd2in13-pixel-color branch November 9, 2023 09:07
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.

3 participants