Function: useCanvas()
useCanvas():
CanvasContext
React hook to get current canvas context.
Throws an error if called from component which is outside the canvas.
useCanvas():
CanvasContext
React hook to get current canvas context.
Throws an error if called from component which is outside the canvas.