lexus2k / lcdgfx

Driver for LCD displays running on Arduino/Avr/ESP32/Linux (including Rasperry) platforms
MIT License
389 stars 55 forks source link

Add ARC to Circle #107

Closed schwos closed 9 months ago

schwos commented 1 year ago

This isn't related to any known problem with the Circle function just like to port some code from u2g2 to this library. Within u2g2 there is the ability to create an arc using the circle function.

Basically, it could be added to the Circle function as an ending variable that would be optional.

This would permit one to create a half circle from the bottom of the screen arching could be used for various tools like simulated analog volt meter or vu meter.

Let me know if there is more information requested.

lexus2k commented 1 year ago

Please check the mainline, if this is what you were writing about.

schwos commented 1 year ago

I see we can draw a circle via a drawCircle(lcdint_t xc, lcdint_t yc, lcdint_t r, uint8_t options) but would be beneficial if we could as to only draw saw a 1/4 of it. like top right, top left now you have a half circle from bottom right of screen arc'd to left of screen.