Draw angle curve between two vectors

How to draw angle curve between two vectors like below pictures in p5js

My current drawing looks like below

Here is the example sketch: https://editor.p5js.org/sarathjasrin/sketches/EVFh7Ni3n

Thanks in advance

for every line you need to get a direction (use atan2()). After that use the arc() function to draw it.

https://p5js.org/reference/#/p5/atan2

https://p5js.org/reference/#/p5/arc

1 Like