How capt-hm/donagic works
This is a browser-based interactive character/domain showcase: users choose a character and see its domain represented by a large animated particle field. The sampled src/main.js combines the character data, interface setup, particle generation, WebGL rendering, and post-processing rather than separating them into modules. The excerpts show asset loading and rendering setup, but omit the full selection handler and animation flow, so those links are not inferred. The README is empty; src/counter.js is not part of the evidenced product workflow.
Main entry points: main.js Character picker · assets Character images · style.css Interface styles
Components 10
Character experience
- Character catalog
src/main.js - Character picker
src/main.js - Domain information
src/main.js - Interface styles
src/style.css
Particle graphics
- Domain shape mapping
src/main.js - Character images
public/assets - Particle system
src/main.js - WebGL particle pass
src/main.js - Post-processing pass
src/main.js
Other components
- Visitor
Connections 10
- Character catalog → Character picker: populates
src/main.js - Character catalog → Domain shape mapping: defines colors
src/main.js - Character catalog → Character images: names image paths
src/main.js - Particle system → Character images: loads images
src/main.js - Particle system → Domain shape mapping: sets particle targets
src/main.js - Particle system → WebGL particle pass: draws particles
src/main.js - WebGL particle pass → Post-processing pass: supplies framebuffer
src/main.js - Character picker → Domain information: updates selection
src/main.js - Visitor → Character picker: chooses character
- Interface styles → Character picker: styles interface
src/main.js