Animation

cristina shared this question 1 year ago
Answered

Hello,


I am doing an animation with two sliders.

I have created a botton (start botton) which iniciates the animation.

I want to stop it whenever the two sliders show the same value.

Also I want to stop it when the two sliders raise the value 0.

I wonder if I could programme it so that it will happen after I presente the (start botton). I mean, automatically.


Thanks, for your help.

Comments (3)

photo
1

I think it is not possible, or not easy in all cases.

I have try sliders with 0.01 in increment and the animation did not stop. I attached the case with 0.1 in increment.

see the upload script for a and b. the 0 case is similar.

Files: foro.ggb
photo
1

Thanks

photo
photo
1

A possibility. But.....

Depending of the speeds, the range of speeds and the complexity of the applet, object c must be adapted.


This solution make only sense if the speed of the slides is not determined (depending of independent values for boths). If possible, only 1 slider with a calculated value for a second pseudo-slider is to be preferred.

© 2019 International GeoGebra Institute