I can't understand how i can find arc() edge. Currently i control White line with mouse. And goal is to change that line to Red, if mouse is outside Yellow zone.
I use this code:
arc( xloc, yloc, size - i * steps, size - i * steps, 60, 90 );
Have a look at this library. It is shown on the library page over at p5js.org.