Skip to content

Commit a068c76

Browse files
committed
Update README
1 parent 04d3e9a commit a068c76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Interactive widgets library exposing the [browser's Canvas API](https://develope
77

88
- The `Canvas` widget is exposing the [`CanvasRenderingContext2D`](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D) API
99
- All the API is written in `snake_case` instead of `camelCase`, so for example `c.fillStyle = 'red'` becomes `c.fill_style = 'red'`
10-
- The `Canvas` widget exposes a `clear` method, we highly recommand using `c.clear()` instead of `c.clear_rect(0, 0, c.size[0], c.size[1])` for clearing the canvas, it will be much more efficient
10+
- The `Canvas` widget exposes a `clear` method, `c.clear()` is a shortcut for `c.clear_rect(0, 0, c.size[0], c.size[1])`
1111
- We provide a `hold_canvas` context manager if you want to perform lots of commands at once
1212

1313
## Example

0 commit comments

Comments
 (0)