I am trying to draw a arc using add_arc to a ui.Path (). With the sample below I can draw a wedge, but I only want the arc drawn. I have tried many ways, I can't figure it out 😱
I would also like to be able to draw the arc in degrees instead of rads, some how I can't also get that working properly, I have tried math.degrees but that seems not to work for me.
Hi-fully its something simple I am doing wrong
Any help appreciated
def draw_arc(rect):
r = ui.Rect(*rect)
s = ui.Path()
s.move_to(r.center()[0], r.center()[1])
s.add_arc(r.center()[0], r.center()[1], r.width / 2,math.radians(0), math.radians(45))
s.eo_fill_rule = False
s.close()
ui.set_color('black')
s.line_width = .3
s.stroke()
Edit

