Skip to content

Add function for drawing polygons to bitmaptools #7471

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

Merged
merged 2 commits into from
Mar 7, 2023

Conversation

matemaciek
Copy link

Inspired by @FoamyGuy (-:

Copy link
Collaborator

@FoamyGuy FoamyGuy left a comment

Choose a reason for hiding this comment

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

Awesome! Thanks for working on this @matemaciek!

I tried this out successfully, but do have a suggestion about possibly changing the types of the arguments used for the points. Let me know your thoughts on switching that to a list or a tuple (or perhaps a list of tuples) instead of using the bytes buffer types.

@dhalbert dhalbert modified the milestones: 8.0.0, 8.x.x Jan 27, 2023
@tannewt tannewt requested a review from FoamyGuy February 17, 2023 18:35
Copy link
Collaborator

@FoamyGuy FoamyGuy left a comment

Choose a reason for hiding this comment

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

I updated this with 2 small changes:

  • changed the int docstring type to ReadableBuffer
  • added a basic example of usage of the function

It seems good to me at this point (pending actions result). Allowing lists or tuples for the points would be a "nice to have" imo, but doesn't need to hold this back.

I retested the latest version on a Feather ESP32-S2 TFT with the example code that was added to the docs.

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.

4 participants