I would like to influence the shape of a circle based on the vicinity to it of an object, for now the mouse pointer. Depending on the direction from which the pointer is approaching the circle, I would like the circle to bend inwards at that location, unto a maximum.
Ultimately, then also bounce back like an elastic shape. Then after the mouse pointer has arrived inside the circle, I would like the circle to change shape in a similar manner, this time not letting the mouse pointer escape, unless the pointer stretches the circle too far.
I am wondering: does anyone have advice how to go about and work towards this goal? So far, I have arrived at the sketch displayed below, which is a first step, but not quite yet what I have in mind...
Any help welcome! Ciao, Menno.
ps. I used
this website to determine how to draw a shape that is almost a circle, using bezier curves. However, maybe there are much better methods to approach this idea?