Help with Reset Button on Graph

I need to offer kids a reset button on this graph component.
The activity is to move two points to represent adding the given integers, but sometimes the points disappear… I put limits on the points, but the 2nd addend still sometimes goes out of bounds.
I imagine it would just go back to the original position if the button is pressed.
Any help? Or suggestions?

Rather than defining two addends and calculating the sum, define an addend and the sum within whatever bounds, and calculate the second addend based on the sum?

Looks like there’s an animation reset, but not for the whole graph. Maybe use actions somehow?

Thanks Daniel! That helped to focus on the animation reset.
I found this from @Jay Reset moveable points with action button
And I was able to adapt it to have two points reset when the button is pressed!

1 Like