asciify-engine 1.0.20 → 1.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +110 -36
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -372,7 +372,7 @@ function lerp(a, b, t) {
|
|
|
372
372
|
function hash2(ix, iy) {
|
|
373
373
|
let n = ix * 127 + iy * 311;
|
|
374
374
|
n = n >> 13 ^ n;
|
|
375
|
-
return (n * (n * n * 15731 + 789221) + 1376312589 & 2147483647) /
|
|
375
|
+
return (n * (n * n * 15731 + 789221) + 1376312589 & 2147483647) / 2147483647;
|
|
376
376
|
}
|
|
377
377
|
function vnoise(x, y) {
|
|
378
378
|
const ix = Math.floor(x), iy = Math.floor(y);
|