ASCII Sharks
ASCII Sharks
Vendored from https://github.com/stackedlol/ascii-sharks at commit a0074c16a106f0abc665fe9712ca445f8f98ad8e. MIT license: see LICENSE.
The original math, species, world simulation and shark renderer are retained. Local renderer changes: an optional quiet mode uses a transparent background, four-pixel cells, no fish/wake/grid effects and no colored shimmer. The site adapter in assets/js/ascii-shark.ts selects one shark and zero fish, runs at half speed and 30 FPS, and handles pause, reduced motion and hidden tabs. No pointer tracking or remote runtime dependencies are used.
Rebuild the checked-in browser bundle with esbuild 0.25.12 from the site root:
esbuild assets/js/ascii-shark.ts --bundle --minify --target=es2020 --outfile=assets/js/ascii-shark.js --banner:js='/*! ASCII Sharks by stackedlol | MIT | assets/vendor/ascii-sharks/LICENSE */'
Jekyll serves the compiled JavaScript; visitors do not need Node or TypeScript.
