You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- The `Canvas` widget is exposing the [`CanvasRenderingContext2D`](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D) API
9
9
- 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])`
11
11
- We provide a `hold_canvas` context manager if you want to perform lots of commands at once
0 commit comments