项目
在 GitHub 查看
stackedlol/ascii-sharks
关于
使用 TypeScript 编写的 ASCII 鲨鱼组件。
其他项目实测星标增长
- 24小时
- +1
- 7天
- +25
- 15天
- +63
- 1个月
- +197
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
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
探索相关项目
加载中…