跳到正文

正在自动登录…

← 返回项目列表

kailashsr38/ascii-magic-art

ASCII艺术展示终端浏览网页嵌入

提供634个动画ASCII艺术作品,可用于网页、README、壁纸和终端,支持在终端浏览、生成提示词并集成到项目中。

AI 中文解读 · 根据仓库描述与 README 生成 · 2026/10/25 07:55:57 · 查看原文

值得看JavaScript资源合集
累计 Stars
300
当前热度
1~7 天 · 小火
仓库创建时间
打开 GitHub ↗项目网站 ↗

选用指南

AI 根据 README 整理 · 2026/10/25 07:55:57

使用方式

可通过npx命令在终端浏览和播放,也可通过HTML标签嵌入网页,或作为ES模块在代码中使用。

查看 README 依据
## Add one to your project in one prompt ```bash npx ascii-magic-art ``` Browse all 634 pieces live in your terminal. Arrow keys move between pieces and categories, `s` changes the look (halftone dots, ASCII, binary, dither and more) and `a` redraws text and line art too. Press enter and a prompt for that piece, in that look, is copied to your clipboard: paste it into Claude Code, Cursor, Copilot or any coding agent and it adds the piece to your site. Or skip the browsing: ```bash npx ascii-magic-art prompt matrix-rain ``` ## Play one in your terminal ```bash
npx ascii-magic-art moonlit-sea npx ascii-magic-art --list npx ascii-magic-art matrix-rain --seconds=3 # stop on its own, for shell startup npx ascii-magic-art sleeping-cat --frame # print one still frame, for a MOTD ``` Any key stops it. Add `--look=dots` (or `ascii`, `numbers`, `binary`...) or `--chars=" .oO@"` to redraw it in other characters. Colour turns off when output is piped or `NO_COLOR` is set. ## Put one on a web page ```html <script type="module" src="https://www.ascii-magic.com/ascii/ascii.js"></script> <ascii-art piece="moonlit-sea"></ascii-art> ``` Attributes:
Every piece is one small ES module with no dependencies apart from `lib/kit.js`. It exports `meta` and a `create()` function that returns `draw(t)`, a function from seconds to a frame: ```js import create, { meta } from "ascii-magic-art/pieces/spinning-torus.js"; const draw = create(); const frame = draw(1.5); // a string, or { text, color } console.log(frame.text ?? frame); ```
部署要求

使用npm安装或npx运行,需要Node.js环境;网页嵌入需支持ES模块的浏览器。

查看 README 依据
## Add one to your project in one prompt ```bash npx ascii-magic-art ``` Browse all 634 pieces live in your terminal. Arrow keys move between pieces and categories, `s` changes the look (halftone dots, ASCII, binary, dither and more) and `a` redraws text and line art too. Press enter and a prompt for that piece, in that look, is copied to your clipboard: paste it into Claude Code, Cursor, Copilot or any coding agent and it adds the piece to your site. Or skip the browsing: ```bash npx ascii-magic-art prompt matrix-rain ``` ## Play one in your terminal ```bash
npx ascii-magic-art moonlit-sea npx ascii-magic-art --list npx ascii-magic-art matrix-rain --seconds=3 # stop on its own, for shell startup npx ascii-magic-art sleeping-cat --frame # print one still frame, for a MOTD ``` Any key stops it. Add `--look=dots` (or `ascii`, `numbers`, `binary`...) or `--chars=" .oO@"` to redraw it in other characters. Colour turns off when output is piped or `NO_COLOR` is set. ## Put one on a web page ```html <script type="module" src="https://www.ascii-magic.com/ascii/ascii.js"></script> <ascii-art piece="moonlit-sea"></ascii-art> ``` Attributes:
| `mono` | one colour instead of the piece's palette | | `all` | with `look` or `chars`, redraw text and line work too, not only shading | | `contrast`| 0 to 100, default 0 | | `dot-size`| halftone dot size for the `dots` look, 25 to 120, default 51 | | `density` | halftone dot spacing, 40 to 250, default 131 (more dots, same size) | | `steps` | halftone dot sizes: `3`, `5`, or `0` for smooth | The element plays only while it is on screen, and holds a still frame for visitors who prefer reduced motion. ## Use a piece in your own code ```bash npm install ascii-magic-art ```
已知限制

两个基于照片的场景(ocean-sunset和starry-ridge)使用Unsplash许可证,其他作品为MIT许可。

查看 README 依据
## Licence MIT. Use the pieces anywhere, including commercial work. A link back is appreciated, not required. Two photo-based scenes, `ocean-sunset` and `starry-ridge`, keep the Unsplash License of their source photos; see [NOTICE](NOTICE). Want your own photo, logo or video as animated ASCII? That is what [ASCII Magic](https://www.ascii-magic.com) does.

README

正在加载 README…

收录信息

仓库创建时间
2026/10/19 16:00:49
首次达标收录
2026/10/25 07:51:15
统计更新时间
2026/10/25 08:50:39

按创建时长与累计 Stars 判断等级。首次达标收录后,即使未达当前门槛仍保留;累计 Stars 和仓库状态会定期更新。确认只有 README 及辅助文件的仓库会停止公开。

模型评估

值得看加权总分 3.9 / 5

新颖度
3.4
实用价值
4.2
成熟度
4.4
实质含量
3.7

由 Jev 模型根据仓库描述与 README 评估,2026/10/25 07:51:15 生成。评分仅供参考,不是代码、安全或许可证审查;热度等级另按创建时长与累计 Stars 计算。

仓库信息

最近推送
2026/10/19 19:32:11
许可证标识
MIT
Fork 数
9
当前状态
未归档

收录记录

按创建时长与累计 Stars 首次收录:小火
首次发现项目