es

Curious code · 01

ascii-sharks

Sharks and fish drawn with ASCII characters, animated on a canvas, written in TypeScript with zero dependencies.

This isn't my own project: I'm sharing it because I found it curious and want to spread the word. All credit goes to its author.

  • TypeScript
  • ASCII Art
  • Canvas

Pick up to four species: the first one stays the largest. A fifth choice replaces the oldest. Move the mouse over the water or click to splash.

ascii-sharks draws sharks and fish as ASCII art inside a canvas, with an engine (OceanEngine) you point at a species and shark size to generate the animation.

It is written in TypeScript with zero external dependencies. The animation on this page is the original project's demo.

Language
TypeScript
View original project

© 2026 AnselmiDev. All rights reserved — but if you copy something, at least say hi.