---
title: restore
framework: webkitjs
role: symbol
role_heading: Instance Method
path: webkitjs/canvasrenderingcontext2d/1628925-restore
---

# restore

Restores the last saved set of context settings.

## Declaration

```data
void restore();
```

## Discussion

Discussion You can save and restore all of the context settings: rotation, scale, translation, transformation matrix, stroke and fill styles, and text settings. This is a very fast, nestable operation.

## See Also

### Saving and Restoring Settings

- [save](webkitjs/canvasrenderingcontext2d/1634183-save.md)
