-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Add quarter circle draw-with-fill method #488
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
base: master
Are you sure you want to change the base?
Add quarter circle draw-with-fill method #488
Conversation
|
@ladyada for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds a new fillQuarterCircle function to the Adafruit_GFX library that provides more granular control over filled circle drawing by supporting all four quadrants independently using a 4-bit mask (0x1, 0x2, 0x4, 0x8), unlike the existing fillCircleHelper which only supports left/right halves using a 2-bit mask.
- Added
fillQuarterCirclemethod declaration to Adafruit_GFX.h - Implemented
fillQuarterCirclein Adafruit_GFX.cpp with full documentation
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| Adafruit_GFX.h | Added function declaration for fillQuarterCircle with parameters matching the implementation |
| Adafruit_GFX.cpp | Implemented fillQuarterCircle function with Midpoint Circle Algorithm and comprehensive documentation |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@ladyada for review. |
1 similar comment
|
@ladyada for review. |
|
hi please do not bump/tag |
This method adds the ability to draw filled quarter circles, which currently isn't possible.