Spaces:
Running
Running
Download tools/sample-depth.js from Mike0021/aquatic-world: direct link, hf CLI and curl.
- Browser
- Download file 362 Bytes
-
https://huggingface.co/spaces/Mike0021/aquatic-world/resolve/main/tools/sample-depth.js
- Command line
-
hf download hf://spaces/Mike0021/aquatic-world/tools/sample-depth.js
-
curl -L -o sample-depth.js https://huggingface.co/spaces/Mike0021/aquatic-world/resolve/main/tools/sample-depth.js
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(';'); | |
| })() | |