Hello, You may want to calculate the distance between the mouse position and your path (I guess a bezier curve). Then given this distance and a tolerance to zero you decide if the mouse position is more or less on your path. Calculating the distance you will also get for free the place where to add a point on your path.
http://blog.gludion.com/2009/08/distance-to-quadratic-bezier-curve.html Hilaire Le 14/11/2013 21:07, kilon alios a écrit : > In order to do that I will have to check that the line passes through a > specific pixel. Or to be more correct that the place that mouse has > clicked is where my path passes through. How I do that ? Can Athens do > that ? Can athens tell me which pixels my path passes through ? > -- Dr. Geo http://drgeo.eu