Draw a smooth arc from 12 'o clock #2549
Replies: 3 comments 3 replies
-
Start at 180 and end at any angle in range 0-360. 180 to 179 will be the largest arc angle. For the circle case draw 0 to 360. |
Beta Was this translation helpful? Give feedback.
-
Thanks so much for your great work Bodmer. Im also trying to figure this out. Ive got a smootharc that grows from about 231 deg to 0, then from 360 to 114 (from left to rignt along the bottom of the display). Using the same driving input for this continual arc is a real nightmare. If its possible to relocate the zero point that helps a ton. Ive been fighting trying to make code that looks at the integer and draws the arc to the zero line then continues on, but its just like pushing a boulder uphill, any little change and it falls apart. |
Beta Was this translation helpful? Give feedback.
-
I can do that, and its fine for a static arc, but an arc that is changing its size (value) is a bit harder. It appears that a smoothArc cant be zero in span (thickness). So for a dynamic arc that draws out with a changing number (say starting at 50 to (49 - 0), and needs to cross over the zero line, the 2nd half of the arc will always have at least a 1 deg arc drawn at the zero line to work. Continuing the arc after zero is ok (360 to (359 - 350). So when the 2nd half comes down that messes up the continuity of the complete arc. Seems like any arc that falls to a zero thickness will draw out a 360 degree full arc. If that makes any sense. I tried to make it as clear as possible. Ill have to create extra code that removes the 2nd arc completely when not crossing the zero line, and then initiates the arc when crossing the zero line. Its a bit of a mess to get this done. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to draw a smooth arc from the top?
Since it starts from the bottom and can only range from 0 to 360 i have to start at 180 till 360 and after that create a new arc from 0 till 180.
With the anti-aliasing it shows a "border" at the bottom.
Is it possible to rotate just the arc by 180 degrees?
Beta Was this translation helpful? Give feedback.
All reactions