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

stack layers in certain way #415

Closed
Forairaaaaa opened this issue Jun 14, 2023 · 4 comments
Closed

stack layers in certain way #415

Forairaaaaa opened this issue Jun 14, 2023 · 4 comments
Labels
enhancement New feature or request stale Inactive issues

Comments

@Forairaaaaa
Copy link

Hi!
I'm trying to draw a simple menu with a selector.
I'm not sure if we have some APIs to stack layers in certain way, like "difference" in PS,
to make the text under the selector more clear, like this:
3ee24547906b55391fffd1085ec167e

So, I try to add "difference" in the fill rect api :

a7925a5981cbe7d02cbddc5e6b1c4ce
77e57a798816bfa3f000dc914362dd8
ef55f9511979581eb67c712b9c3dec2

It sure meets my need so far, but the code becomes quite dirty.
I wander if there's a better way to achieve it?

Thanks!

@Forairaaaaa Forairaaaaa added the enhancement New feature or request label Jun 14, 2023
@tobozo
Copy link
Collaborator

tobozo commented Jun 14, 2023

Hi, thanks for your contribution 👍

Some thoughts:

  • readPixelRGB() can be limited to sprites depending on the panel, tft.isReadable() is your friend for detecting that.
  • drawPixel is the slowest function for drawing, storing pixels in one horizontal line buffer may be more efficient

@Forairaaaaa
Copy link
Author

Hi, thanks for your contribution 👍

Some thoughts:

  • readPixelRGB() can be limited to sprites depending on the panel, tft.isReadable() is your friend for detecting that.
  • drawPixel is the slowest function for drawing, storing pixels in one horizontal line buffer may be more efficient

Thanks! This cound be quite helpful

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale Inactive issues label Jul 14, 2023
@github-actions
Copy link

This issue has been automatically closed because it has not had recent activity. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request stale Inactive issues
Projects
None yet
Development

No branches or pull requests

2 participants