Question: Sawtooth Animation

Hello

This is a sawtooth GIF from the wikipage Sawtooth wave 

I want to recreate this animation in Maple. Could someone help me out with the formula to create this

 

 

Please Wait...