Usage# Usage Basic usage Create Canvas Resize Canvas Clear Canvas Optimizing drawings Drawing simple shapes Drawing rectangles Drawing polygons Drawing arcs and circles Drawing lines Vectorized methods Styled vectorized methods Drawing paths Using Path2D Using Path commands Styles and colors Colors Color Gradients Patterns Filters RoughCanvas Shadows Lines styles Rough Canvas Create a RoughCanvas Fill style Roughness Bowing Drawing text Styles and colors Drawing images From an Image widget From another Canvas From a NumPy array Optimizing drawings Retrieve Canvas image Save Canvas to a file Get image data as a NumPy array Animations Animation loop Canvas state Transformations Interactions Built-in mouse events Built-in touch events Keyboard events ipyevents GamePad support Advanced usage ipycanvas in VoilĂ