Default color: White

This commit is contained in:
Mahdi Dibaiee
2014-02-20 13:39:44 +03:30
parent a8c78d482d
commit 2a99139364
8 changed files with 15 additions and 4 deletions

View File

@ -11,6 +11,7 @@ $(document).ready(function() {
$(window).resize(sizeAndPos);
function save() {
var f = c.getImageData(0, 0, width(), height());
switch(save.background) {
case 'white': {
c.fillStyle = 'white';
@ -61,7 +62,7 @@ $(document).ready(function() {
window.open(data, '_blank').focus();
}
c.putImageData(window.points.history[window.points.history.last].data, 0, 0);
c.putImageData(f, 0, 0);
}
function load() {