Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (11 sloc) 343 Bytes
makePng = () ->
canvas = $("#forSaving")[0]
ctx = canvas.getContext("2d")
ctx.clearRect(0,0,canvas.width,canvas.height)
ctx.drawImage($("#workspaceCanvas")[0], 0, 0)
ctx.drawImage($("#drawFurther")[0], 0, 0)
dataURL = canvas.toDataURL('image/png;base64')
window.open(dataURL)
module.exports = {
makePng: makePng
}