Hi GoToLoop,
This solution is a little over my heard Is this something I could use on OpenProcessing with p5Js to solve this problem: