I am trying to switch to JSXGraph from Geogebra due to the later's poor JS interface. Geogebra has a locus function that takes as input a Point and a Slider and displays the locus the point traces out as the slider goes from min to max.
I can't seem to find they way to implement this in JSXGraph. I have tried using tracecurve with arguments of the slider (which extends glider) and the point, but that does not work.
Thanks.
Is this the functionality you are looking for?
In this version the position of the point is specified by the slider value as the slider moves forward (so basically the x and y coordinates are specified as functions of the slider value).
The code simply creates a polygonal chain and shows/hides part of it as the slider is moved. Of course, the segments can be hidden altogether and the density of the points can be set (as opposed to Geogebra, where the locus depends on the speed the slider is moved).
Link to the JSfiddle