lexus2k / lcdgfx

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

Add ARC to Circle #107

Closed schwos closed 4 months ago

schwos commented 11 months 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 10 months ago

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

schwos commented 10 months 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.