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

Limit number of LEDS shown in Liveview to pixel width of canvas #3696

Closed
wants to merge 1 commit into from

Conversation

zanhecht
Copy link
Contributor

Avoids aliasing errors on narrow screens (such as on mobile). Follow-on to discussion in #3621 , but broken out into a separate pull request.

For example, when displaying the colors from the C9 palette:
image

The current 0_15 branch code looks like the following with 1024 LEDs on a mobile screen that's 915 pixels wide:
image

Limiting it to the width of the canvas results in the following:
image

Avoids aliasing errors on narrow screens (such as on mobile). Follow-on to discussion in Aircoookie#3621 , but broken out into a separate pull request.
@blazoncek
Copy link
Collaborator

Removing a part of LED strip from peek would be more annoying than seeing moire.
Not in favour of this PR.

@zanhecht
Copy link
Contributor Author

Fair enough. I'll open another PR for another method to reduce moire without cutting off the end.

@zanhecht zanhecht closed this Jan 16, 2024
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