Table of Contents

Canvas Element

save()

Pushes the current context settings onto the stack.

ctx.save();

restore()

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().

ctx.restore();

Links