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

@ -35,7 +35,7 @@
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 = pskl.utils.normalizeColor(frame[col][row]);
color = frame[col][row];
this.drawPixelInCanvas(col, row,canvas, color, dpi);
}
}

View File

@ -18,7 +18,7 @@
ns.PaintBucket.prototype.applyToolAt = function(col, row, frame, color, canvas, dpi) {
// Change model:
var targetColor = pskl.utils.normalizeColor(frame[col][row]);
var targetColor = frame[col][row];
//this.recursiveFloodFill_(frame, col, row, targetColor, color);
this.queueLinearFloodFill_(frame, col, row, targetColor, color);

View File

@ -22,9 +22,6 @@
this.previousCol = col;
this.previousRow = row;
// Change model:
var color = pskl.utils.normalizeColor(color);
if (color != frame[col][row]) {
frame[col][row] = color;
}