Previews are fixed. Removed drawing methods from piskel .js

This commit is contained in:
juliandescottes
2012-09-04 22:18:00 +02:00
parent c261c370ad
commit 69a03a3416
9 changed files with 49 additions and 65 deletions

View File

@@ -73,7 +73,7 @@
var nextCol = currentItem.col + dx[i]
var nextRow = currentItem.row + dy[i]
try {
if (frame.isInFrame(nextCol, nextRow) && frame.getPixel(nextCol, nextRow) == targetColor) {
if (frame.containsPixel(nextCol, nextRow) && frame.getPixel(nextCol, nextRow) == targetColor) {
queue.push({"col": nextCol, "row": nextRow });
}
} catch(e) {