How can I set the pause button to turn off the plasma? in the stop button added.

my program processes the code at the same speed, I want it to slow down at the corners. how to do it ? I have plasma