I am not sure what you mean by "restart", but usually, you just reset the global variables to their initial values.
You might want to reset the fill() state too, and call background() to erase everything.
You might want to reset the fill() state too, and call background() to erase everything.