Skip to content

Commit 930bf3c

Browse files
committed
Updated readme. save() and restore() were missing.
1 parent 1a42c36 commit 930bf3c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,17 @@ by the module. Use the `getContext()` method on the canvas to get a `CanvasConte
164164

165165
Fills the specified rectangle without affecting the current paths.
166166

167+
#### Operations
168+
169+
* `save()`
170+
171+
Saves the current transformation and fill style to a stack. The state can be
172+
restored using `restore()`.
173+
174+
* `restore()`
175+
176+
Restores the last state saved by `save()` and removes the state from the
177+
state stack.
167178

168179
#### Transformation
169180

0 commit comments

Comments
 (0)