Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (14 sloc) 353 Bytes
<script src="build/build.js"></script>
<style>
canvas {
border: 1px dotted #ddd;
}
</style>
<canvas width=800 height=500></canvas>
<script>
var canvas = document.querySelector('canvas');
var Sketch = require('component-sketch');
var simplify = require('simplify-sketch');
var sketch = Sketch(canvas);
simplify(sketch, 1);
</script>