How kailashsr38/ascii-magic-art works
ASCII Magic Art is a library of animated ASCII pieces, usable from a terminal, a web page, or JavaScript. The main workflow selects a piece, produces timed text-and-colour frames, optionally restyles them, then plays or renders them. The README documents browser playback and canvas-based image, GIF, and video export; sampled code also shows the CLI using piece modules and runtime styling. The many individual pieces are represented by the catalog and representative implementation nodes. Some browser and export relationships are documented rather than fully visible in the excerpts.
Main entry points: cli.js Terminal CLI · player.js Web player · pieces Piece catalog · canvas.js Canvas renderer
Components 15
User entry points
- Terminal CLI
bin/cli.js - Web element
runtime/ascii.js - JavaScript API
pieces - Piece prompts
bin/cli.js
Art catalog
- Piece catalog
pieces - Scene pieces
pieces - Photo scenes
pieces/ocean-sunset.js
Frame and render runtime
- Web player
runtime/player.js - Look restyling
runtime/glyphs.js - Canvas renderer
runtime/canvas.js - Terminal playback
bin/cli.js
Drawing toolkit
- Image animation
lib/image.js - Scene drawing
lib/scene.js - Grid toolkit
lib/kit.js
Other components
- User
Connections 19
- User → Terminal CLI: runs command
README.md - User → Web element: embeds element
README.md - User → JavaScript API: imports piece
README.md - Terminal CLI → Piece catalog: loads pieces
bin/cli.js - Terminal CLI → Look restyling: restyles frames
bin/cli.js - Terminal CLI → Terminal playback: plays frames
README.md - Terminal CLI → Piece prompts: copies prompt
README.md - Piece prompts → User: copies to clipboard
README.md - Web element → Web player: starts playback
README.md - Web player → Piece catalog: loads piece
runtime/player.js - Web player → Look restyling: restyles frames
runtime/player.js - Web player → Canvas renderer: paints frames
runtime/player.js - JavaScript API → Piece catalog: selects piece
README.md - Piece catalog → Grid toolkit: draws with
pieces/ci-pipeline.js - Scene pieces → Grid toolkit: draws with
pieces/chai-stall-dawn.js - Photo scenes → Image animation: animates image
pieces/ocean-sunset.js - Scene drawing → Grid toolkit: uses utilities
lib/scene.js - Photo scenes → Canvas renderer: exports frames
README.md - JavaScript API → Canvas renderer: exports media
README.md