Draw here!

Wanna try the jQuery-friendly version?

(function() {

    var sketcher = new Sketchable(document.getElementById('drawing-canvas'));

    function resizeHandler(elem, data) {
      var newWidth = elem.parentNode.clientWidth * 0.95;
      data.sketch.size(newWidth, elem.height);
    }

    window.onresize = function(ev) {
      sketcher.handler(resizeHandler);
    };

    sketcher.handler(resizeHandler);

})();