Permalink
Browse files

minor fix

  • Loading branch information...
1 parent 0996c31 commit e85cdb709a75750e32a3de3c4e895eb01931fb1d @nulltask committed Feb 24, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 glitch/index.html
View
@@ -29,13 +29,14 @@
canvas.width = this.width;
canvas.height = this.height;
ctx.drawImage(this, 0, 0, this.width, this.height);
- // dest.src = canvas.toDataURL();
+ dest.src = canvas.toDataURL();
});
image.src = './lenna.jpg';
});
</script>
</head>
<body>
+ <h1>Glitch example</h1>
<div style="float: left;"><canvas id="src"></canvas></div>
<div style="float: left; margin: 10px"><button id="glitch">Glitch</button></div>
<div><img id="dest" src="data:,"></div>

0 comments on commit e85cdb7

Please sign in to comment.