Pushes the current context settings onto the stack.
ctx.save();
Pops and restores the most recently saved context settings from the stack. This will undo any changes made to the drawing context since the last call to save().
save()
ctx.restore();