diff --git a/js/index.js b/js/index.js index 72fe8b3..70d056c 100644 --- a/js/index.js +++ b/js/index.js @@ -142,18 +142,18 @@ Game.prototype.map = function () { base[i] = Math.max(base[i], 0); base[i] = Math.min(base[i], 1); base[i] = Math.pow(base[i], 0.3); - base[i] = base[i] * 0.5 + 0.5; + base[i] = base[i] * 0.3 + 0.7; //base[i] = (Math.random() > 0.5) ? 0 : 1; } this.fac = 1; - let x2 = 0, y2 = 0; + let x2 = 0, y2 = 0, mask = 0; for (let i = 0; i < 1000000; i++) { - x2 = Math.random() * 1e7; - y2 = Math.random() * 1e7; - let mask = toPoint(x2, y2, base, this.fac, exp, inSize); + x2 = Math.random() * (1.000012 ** i) * 1e2; + y2 = Math.random() * (1.000012 ** i) * 1e2; + mask = toPoint(x2, y2, base, this.fac, exp, inSize); if (mask == 1) break; } this.camera = [x2, y2];