ascii-sharks README

The project's README from github.com/stackedlol/ascii-sharks. As one markdown file: README.md.

ascii sharks

                            ;'
                             %%'
                              .t;.               .oooo
                               S;:S%              %8S8.
                                ;:tt%t '..        XX%%S
t'                            ''XSSS8SSX%XX8#.    %XSX%
 :;'               ;.''X8%8XX%%S%%S%SStt%tSX8S#X8't%ttt.
  ::%'       ''8XXXSSt%Stttttt%8@%%@%8@8%Sttt%%%%SSSSS%tt.
  'SXXtt%t%%%S%:;StS%ttSS%tSXSt88@@%8%@8%tStS%%X%SS%%S%;;t
 .@##88#@...'@@@@#@8@88X88#XXXSX8SX88SX8%SS%S%%S88St%t%%%.
  %;%t             :.    '.'##@###@X#888XX##8@@@#.X%XS%.
 .%t                            ;%%%#@@##@@@.     SXS%%
 t.                            .%;%%%.            %%XXS
                              '%t:t              .SXSS'
                             '::.                ooooo
                            .S'
                            .

Fish and sharks drawn as ASCII on a canvas. Zero dependencies.

npm install && npm run dev
import { OceanEngine } from "./src";

const engine = new OceanEngine(canvas, [{ kind: "hammerhead", size: 1 }]);

// Options: fish count (0 = sharks only), "dark" | "light" theme, a drawing stage
// ("spine" | "silhouette" | "shaded" | "full"), pointer on/off, a single still frame,
// and contain: true to keep every shark wholly inside the canvas.
new OceanEngine(canvas, undefined, { theme: "light", fish: 0, pointer: false, still: true });

Routes:

/            the demo
/light       the chat hero scene, on paper
/dark        the chat hero scene, on black
/blueprints  ten frames on one grid, from Conway's Life to the sharks

?sharks=whale,hammerhead,mako,nurse picks the cast on any shark page, ?all puts every species in, and ?still=1 draws one settled frame.

MIT

ascii-sharks (stackedlol/ascii-sharks)

Searching Database…

What is this?ascii-sharks is a TypeScript library of fish and shark characters drawn in ASCII art on an HTML canvas.
Is this a set of components I drop into a canvas, or a full drawing app?It's a set of TypeScript components you import and render yourself onto a canvas, not a standalone app.
Does it pull in any other libraries?No - the README explicitly states it has zero dependencies.
Where does this run - browser, desktop app, something else?It's built to render on an HTML canvas, so it's a browser/web component rather than a desktop or mobile app.
What can I actually build with this?You can embed ASCII-art fish and sharks into any canvas-based web page or app for a playful visual effect, without adding any extra dependencies to your project.
Why is it 'zero dependencies' a selling point?Being dependency-free keeps the library tiny and easy to drop into any TypeScript or canvas project without bloating your bundle.
Creator
stackedlol
Size
<0.1 MB
Stars
1.6K
Updated
CommitOct 24
Age
1mo
Commits · 90 Days