Giving an arc a stroke / outline
in
Programming Questions
•
2 years ago
So, with stroke being on - when drawing an arc it only outlines part of the shape. What I'd like to do is create an outline of the entire arc shape so that the fill is fully outlined - just as you'd see with an ellipse.
One trick I'd think would be straight forward would be to simple draw two lines from the origin point of the arc (x, y) and the start/stop points of the arc. However, the arc takes radians or degrees as its start/stop arguments - so I really have no idea what coordinates the start and end points are. Does anyone have the formula to figure that out?
Really, all I want to do is fully outline each arc segment I have in a pie chart graphic that I am writing up.
1