How mishratanya2311/living-ascii-portrait works
Living ASCII Portrait is a browser-based animated artwork. The user opens the page, where the JavaScript engine uses generated portrait data to render and animate ASCII characters on a canvas; pointer movement adds interactive effects. The README documents the feature stages and optional Python data regeneration. Source excerpts show portions of the animation and interaction logic, but omit initialization and rendering sections, so some wiring is supported only by README statements.
Main entry points: wallpaper.js Animation engine · index.html Portrait page · portrait-data.js Portrait grid data · build_portrait_data.py Data generator
Components 12
Page and presentation
- Portrait page
index.html - Responsive styling
styles.css - Canvas surface
index.html
Portrait runtime
- Animation engine
wallpaper.js - ASCII renderer
wallpaper.js - Reveal and zoom
wallpaper.js - Hair animation
wallpaper.js - Eye animation
wallpaper.js - Pointer effects
wallpaper.js
Data generation
- Portrait grid data
portrait-data.js - Data generator
tools/build_portrait_data.py
Other components
- Viewer
Connections 12
- Viewer → Portrait page: opens
README.md - Portrait page → Animation engine: runs
README.md - Animation engine → Portrait grid data: uses data
README.md - Animation engine → ASCII renderer: renders
README.md - ASCII renderer → Canvas surface: draws on
README.md - Portrait page → Responsive styling: styled by
README.md - Animation engine → Reveal and zoom: animates
README.md - Animation engine → Hair animation: animates
README.md - Animation engine → Eye animation: animates
README.md - Viewer → Pointer effects: moves pointer
README.md - Animation engine → Pointer effects: handles input
wallpaper.js - Data generator → Portrait grid data: generates
README.md