Skip to content

adding filled polygon. Add support for stroke on Polygon #76

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
Nov 18, 2024

Conversation

FoamyGuy
Copy link

@ladyada

Resolves: #63

I opted to make a new FilledPolygon class instead of adding support to existing Polygon directly so that anyone who wants to use the traditional one doesn't have to gain the overhead of an extra Group, or have their code broken if it used some of the superclass TileGrid's attributes.

Not strictly related to the fill support, but I also added the ability to set a stroke on the existing Polygon (and the new FilledPolygon). All of the other shapes support a stroke value for the thickness of their outline, but Polygon didn't before.

@FoamyGuy FoamyGuy merged commit 50d81fd into adafruit:main Nov 18, 2024
1 check passed
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Nov 19, 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.

Fill for polygons
2 participants