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

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

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
Updating https://github.com/adafruit/Adafruit_CircuitPython_BME680 to 3.7.11 from 3.7.10:
  > Merge pull request adafruit/Adafruit_CircuitPython_BME680#77 from savannahcofer/bugfix/script_timeout

Updating https://github.com/adafruit/Adafruit_CircuitPython_BLE to 10.0.10 from 10.0.9:
  > Merge pull request adafruit/Adafruit_CircuitPython_BLE#205 from ktnyt/hid-multiple-reports

Updating https://github.com/adafruit/Adafruit_CircuitPython_Display_Shapes to 2.10.0 from 2.9.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_Display_Shapes#76 from FoamyGuy/polygon_fill

Updating https://github.com/adafruit/Adafruit_CircuitPython_Display_Text to 3.2.0 from 3.1.7:
  > Merge pull request adafruit/Adafruit_CircuitPython_Display_Text#216 from FoamyGuy/text_box

Updating https://github.com/adafruit/Adafruit_CircuitPython_Bundle/circuitpython_library_list.md to NA from NA:
  > Updated download stats for the libraries
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