Sorry Zach, maybe I cannot explain my intention correctly.
The pupil in the g code I've posted is moving with mouse but it goes outside the yellow circle , so what I'm trying to do is move the pupil with mouse but inside the yellow circle (just like the reference, sorry for being so repetitive).
Thanks a lot for your time, I'm a visual designer and I'm trying to learn some code.