Removed all references to normalizeCOlor

This commit is contained in:
juliandescottes
2012-09-03 22:31:56 +02:00
parent ad1fc2ecc2
commit 3e02037b58
5 changed files with 4 additions and 24 deletions

View File

@@ -42,16 +42,7 @@ $.namespace("pskl");
penColor = Constants.DEFAULT_PEN_COLOR,
currentFrame = null;
currentToolBehavior = null,
previousMousemoveTime = 0,
//utility
_normalizeColor = function (color) {
if(color == undefined || color == Constants.TRANSPARENT_COLOR || color.indexOf("#") == 0) {
return color;
} else {
return "#" + color;
}
};
previousMousemoveTime = 0;
/**
* Main application controller
@@ -391,7 +382,7 @@ $.namespace("pskl");
var color;
for(var col = 0, num_col = frame.length; col < num_col; col++) {
for(var row = 0, num_row = frame[col].length; row < num_row; row++) {
color = _normalizeColor(frame[col][row]);
color = frame[col][row];
this.drawPixelInCanvas(row, col, color, canvasElement, dpi);
}
}