TFT_eSPI icon indicating copy to clipboard operation
TFT_eSPI copied to clipboard

Feature request: float angle support when drawing arcs

Open Enchiridion opened this issue 1 year ago • 1 comments

Great library! Would it be possible to update the arc drawing functions to support floats for the angles? I'm using the arcs to animate a timer and other changing values, but because the angles are integers they're not moving as smoothly as they could.

Enchiridion avatar Jun 25 '24 19:06 Enchiridion

Agree with this, integer angle parameters are bonkers - they're even treated as floats (pretty much) in the code. Fortunately, it's simply a matter of editing the relevant declarations and definitions in the .h and .cpp files... Various internal comparisons should maybe be re-coded to use float constants, but the compiler probably doesn't care that much.

I'd do a PR, but there seem to be 48 pending (at time of writing), so there's probably no point.

h4yn0nnym0u5e avatar Mar 19 '25 10:03 h4yn0nnym0u5e