aquatic-world / tools /sample-depth.js
Mike0021's picture
Upload folder using huggingface_hub
b08c4a1 verified
Raw History Blame Contribute Delete
362 Bytes
(() => {
const lo = -2400, hi = 2400, step = 80;
const n = Math.round((hi - lo) / step) + 1;
const rows = [];
for (let j = 0; j < n; j++) {
const r = [];
for (let i = 0; i < n; i++) r.push(Math.round(AW.terrain.depth(lo + i * step, lo + j * step)));
rows.push(r.join(','));
}
return lo + '|' + step + '|' + n + '|' + rows.join(';');
})()