How tsoding/formula works
This is a small browser-based 3D graphics demonstration accompanying a video. Its workflow is a timer-driven animation: the page's canvas is cleared, model vertices are rotated and translated, perspective-projected into screen coordinates, and polygon edges are drawn. The README identifies the penger model as sourced externally; the tree and excerpts do not show how index.html loads scripts or selects between the cube and penger data, so those links are omitted.
Main entry points: index.js Animation frame loop
Components 6
Model Geometry
- Cube mesh
cube.js - Penger mesh
penger.js
Animation and Rendering
- Canvas setup and drawing
index.js - Animation frame loop
index.js - Transform and projection
index.js
Other components
- Browser viewer
Connections 4
- Browser viewer → Animation frame loop: starts animation
index.js - Animation frame loop → Canvas setup and drawing: clears and draws
index.js - Animation frame loop → Transform and projection: transforms vertices
index.js - Transform and projection → Canvas setup and drawing: supplies screen points
index.js