Skip to content

Instantly share code, notes, and snippets.

@pespes
pespes / coffee-stained-paper.js
Created September 9, 2011 13:48 — forked from mnmly/coffee-stained-paper.js
A tiny shim for Paper.js/CoffeeScript prototyping
window.stainedPaper = function (func) {
var canvas = document.createElement('canvas');
document.body.appendChild(canvas);
paper.setup(canvas);
func.call(paper);
};