restore method
Returns previously saved CanvasRenderingContext2D path state and attributes.
![]() ![]() |
Syntax
CanvasRenderingContext2D.restore();Parameters
This method has no parameters.
Return value
This method does not return a value.
Standards information
- HTML Canvas 2D Context, Section 2
Remarks
Use the save method to save the current state of the context. Save and restore the following states and attributes:
- The current transformation matrix
- The current clipping region
- The current values of the following attributes:
Attribute
See also
Show:

