Stylistic changes to src/js/utils/PixelUtils.js

This commit is contained in:
Smie 2016-10-28 18:20:02 -06:00
parent aca6c28b4b
commit a560872df7

View File

@ -81,11 +81,14 @@
*/
resizePixel : function (col, row, size) {
var pixels = [];
if(size > 1000000) size = 1000000;
var i;
var j;
for(j = 0; j < size; j++) {
for(i = 0; i < size; i++) {
pixels.push([col-Math.floor(size/2)+i,row-Math.floor(size/2)+j]);
if (size > 1000000) { size = 1000000; }
for (j = 0; j < size; j++) {
for (i = 0; i < size; i++) {
pixels.push([col - Math.floor(size / 2) + i,row - Math.floor(size / 2) + j]);
}
}