I am trying to fill a portion near point 0 of a circularpath.
path circle ; circle = circularpath(10) scaled 200 ;
pair a, b ; a = point 35 of circle ; b := point 5 of circle ;
fill buildcycle((origin--a), (origin--b), circle) withcolor lightgray ;
draw circle ; dotlabel.top("A", a) ; dotlabel.top("B", b) ;
I tried any possible combinations I can thought on buildcycle arguments and reverse it all, but it always gives the following wrong output:
Indeed, my goal here is to swap the colors and to have only the small area in gray.
How can I achieve that?



numerics, I managed to understand that it is also possible to use negative numbers to do it. For example, if we use your (or mickep) answer and apply it to my question by settingato-5(point 35 ofcircularpath(10)) andbto5(point 5circularpath(10)) in order to applyfill origin -- subpath (a, b) of circle -- cycle, then we get the correct result. – Oct 21 '22 at 16:58