Update preview/js/piskel.js

This commit is contained in:
Julian Descottes 2012-08-28 15:36:21 +03:00
parent 36751a2f60
commit 051bbff20f

View file

@ -69,7 +69,7 @@
binaryFrames[i] = "";
for (var j =0 ; j < chunks.length ; j++) {
var binaryEnding = parseInt(chunks[j], 36).toString(2);
var missingZeros = (new Array(1 + 64 - binaryEnding.length)).join("0");
var missingZeros = (new Array(1 + 32 - binaryEnding.length)).join("0");
binaryFrames[i] += (missingZeros + binaryEnding);
console.log((missingZeros + binaryEnding).length);
}