使用canvas开发的一个小像素画板,原生js实现
$ npm install
#build
$ npm run build
# or start in devloper mode
$ npm run dev
import drawing.js
<script src='/bundle.js'></script>
<body>
<div id="main">
</div>
<script>
var d = new Drawing({
el:'main'
});
d.createPixel();
</script>
</body>