Search code examples
javascriptautomatic-ref-countingdistanceedge-detection

Find arc() edge while using p5js


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 );

enter image description here


Solution

  • Have a look at this library. It is shown on the library page over at p5js.org.