Anonymous
public text v1 · immutable<canvas id="c" width="1" height="1">
</canvas>
<script>
var c = document.getElementById("c");
var ctx = c.getContext("2d");
ctx.fillStyle = '#000080';
ctx.fillRect(0, 0, 1, 1);
alert(c.toDataURL());
</script>
<canvas id="c" width="1" height="1">
</canvas>
<script>
var c = document.getElementById("c");
var ctx = c.getContext("2d");
ctx.fillStyle = '#000080';
ctx.fillRect(0, 0, 1, 1);
alert(c.toDataURL());
</script>