starting to port canvas drawing code
This commit is contained in:
parent
e6d46b593b
commit
c6551102f8
13 changed files with 2708 additions and 14058 deletions
9
app/lib/make-image.js
Normal file
9
app/lib/make-image.js
Normal file
|
@ -0,0 +1,9 @@
|
|||
|
||||
module.exports = function makeImage (src, cb) {
|
||||
let image = new window.Image()
|
||||
image.onload = () => {
|
||||
cb(image)
|
||||
}
|
||||
image.src = src
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue