-
Notifications
You must be signed in to change notification settings - Fork 502
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
PicoGraphics Implementation of Arc, Pie and Fast Trigonometry #586
Conversation
8ed7fae should address the CI failures. |
Thank you, your demo shot looks incredible! This could be really useful. I probably wont have the time to give this the attention it deserves until the new year, but it's on my radar. |
This might have been entirely supplanted by PicoVector - #783 - which, with a basic walk around the perimeter of two circles of "r" and "r - arc_thickness", can produce similar results. I posted an example to this end here - #783 (comment) Does make me wonder if PicoVector should have an explicit arc function. It's fertile ground for all-the-shapes. |
The new, updated PicoVector does have an explicit arc function, but it's still slowly trundling through the pipeline. Experimental builds are available here, but there is no documentation... yet - #1019 Since PicoVector can use anti-aliasing, arcs, circles and everything else looks so much nicer! |
Hi, I implemented the maths for drawing arcs and pies for one of my projects. I thought it would be helpful to contribute this upstream too.
This works like normal trigonometry except it's degrees based (due to performance hits with float related operations). With this particular implementation, the discrete steps are 1 degree.
Example
Demo