How tahirdotdev-tdd/alive-ascii works
Living ASCII Portrait is a browser-based tool for turning a user’s message and photo into an animated ASCII portrait and exporting it as a looping GIF. The main path is photo and message input, portrait rendering with visual effects, then optional export. The implementation is concentrated in app.js; the graph separates its major responsibilities while reusing that exact source path. The app.js excerpt is partial, so internal links not shown directly are supported by README statements rather than assumptions about unsampled code.
Main entry points: app.js ASCII scene · index.html Web interface
Components 15
Portrait input
- Photo input
app.js - Message and controls
app.js
Portrait rendering
- Image preparation
app.js - Light analysis
app.js - Character grid
app.js - ASCII scene
app.js
Visual effects
- Lamp effects
app.js - Pointer ripple
app.js - Animated rendering
app.js
GIF export
- GIF export
app.js - GIF encoder
app.js
Other components
- User
- Web interface
index.html - Browser
- GIF download
Connections 15
- User → Web interface: uses
README.md - Web interface → Photo input: accepts photo
README.md - Web interface → Message and controls: sets message
README.md - Photo input → Image preparation: loads image
app.js - Image preparation → Light analysis: samples pixels
app.js - Light analysis → Character grid: maps brightness
README.md - Message and controls → Character grid: provides text
README.md - Character grid → ASCII scene: renders portrait
README.md - ASCII scene → Lamp effects: adds lighting
README.md - ASCII scene → Pointer ripple: responds to pointer
README.md - ASCII scene → Animated rendering: animates scene
app.js - User → GIF export: requests export
README.md - GIF export → GIF encoder: encodes frames
README.md - GIF export → GIF download: offers GIF
app.js - Browser → Photo input: reads locally
README.md