Through the past two weeks, I have been working on this moving pattern and tried to optimize the code. I am pretty happy wit what I have except one function mouseOver() in the latest version which I couldn’t make it work.
Latest version with mousePressed()
Figuring out small circle placement:
Combine circle placement and sine movement: