Skip to content

Instantly share code, notes, and snippets.

View chrisblazek's full-sized avatar

Chris Blazek chrisblazek

View GitHub Profile
Meteor.startup(function () {
// create a wrapper around native canvas element (with id="c")
window.canvas = new fabric.Canvas('c');
window.canvas.selection = false;
window.canvas.setBackgroundImage('tempimg/space.jpg',
window.canvas.renderAll.bind(canvas));
window.canvas.on('object:modified', function (e) {
var data;