starting to port canvas drawing code

This commit is contained in:
Bala Clark 2015-07-16 23:33:46 +02:00
parent e6d46b593b
commit c6551102f8
13 changed files with 2708 additions and 14058 deletions

9
app/lib/make-image.js Normal file
View file

@ -0,0 +1,9 @@
module.exports = function makeImage (src, cb) {
let image = new window.Image()
image.onload = () => {
cb(image)
}
image.src = src
}