Arcs, Beziers & Paths
Posted: 2013-07-19T23:10:52-07:00
Hi
The following mockup image shows a full circle for which I know the origin coords (ox,oy) and radius.
I don't want to draw the whole circle, however, I just want to draw the black solid section of the circle's circumference (x1,y1 to x4,y4). I've been looking at the documentation on arcs, bezier curves etc but am not sure how to approach this.
Furthermore, what I ultimately want to do is draw a filled shaped that goes from x1,y1 -> x2,y2 -> x3,y3 -> x4,y4 and incorporates the arc (the line/stroke colour would be the same all the way round unlike the mockup above). I figure the "path" draw method is the one I need for this purpose but don't know how to do the arc part of it.
Can anyone help on this please?
The following mockup image shows a full circle for which I know the origin coords (ox,oy) and radius.
I don't want to draw the whole circle, however, I just want to draw the black solid section of the circle's circumference (x1,y1 to x4,y4). I've been looking at the documentation on arcs, bezier curves etc but am not sure how to approach this.
Furthermore, what I ultimately want to do is draw a filled shaped that goes from x1,y1 -> x2,y2 -> x3,y3 -> x4,y4 and incorporates the arc (the line/stroke colour would be the same all the way round unlike the mockup above). I figure the "path" draw method is the one I need for this purpose but don't know how to do the arc part of it.
Can anyone help on this please?