Closed lleohao closed 6 years ago
package dependencies
"dependencies": {
"roughjs": "^2.0.0"
}
your 'document.getElementById('myCanvas')' will return the main object which is not a canvas. You want canvas (https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API)
Oh, sorry. it is my mistake. Thanks
Examples may help: https://github.com/pshihn/rough/wiki/Examples
chrome version: 64.0.3282.186