How pangyongsheng/pixel-math-wasm works
Pixel Math WASM is a browser-based collection of image-processing, mathematics, machine-learning, and graphics demos, with Rust algorithms exposed through WebAssembly and a Vue interface. The intended workflow is to choose a demo, provide or adjust inputs, run an algorithm, and view the result; fractal demos also render and interact directly on Canvas. The README documents the browser/WASM relationship, while sampled source confirms Rust module exports and the Vue app entry point. Individual page-to-algorithm calls are not shown in the sampled source, so those links are not expanded.
Main entry points: lib.rs Rust WASM API · App.vue Vue app · views Demo pages · fractal Fractal views
Components 15
Vue interface
- Vue app
web/src/App.vue - Demo pages
web/src/views - Fractal views
web/src/views/fractal
WASM algorithms
- Rust WASM API
src/lib.rs - Pixel filters
src/image - Convolution effects
src/convolve - Geometric transforms
src/transform - Fractal algorithms
src/fractal - Linear algebra
src/linear - Probability tools
src/probability - Frequency tools
src/frequency - Image intelligence
src/intelligence - Simulation synthesis
src/synthesis
Canvas graphics
- Canvas rendering
web/src/views/fractal/FractalCanvas.vue
Other components
- Demo user
Connections 14
- Demo user → Vue app: opens demos
- Vue app → Demo pages: presents pages
- Demo pages → Rust WASM API: runs algorithms
- Rust WASM API → Pixel filters: exports
- Rust WASM API → Convolution effects: exports
- Rust WASM API → Geometric transforms: exports
- Rust WASM API → Fractal algorithms: exports
- Rust WASM API → Linear algebra: exports
- Rust WASM API → Probability tools: exports
- Rust WASM API → Frequency tools: exports
- Rust WASM API → Image intelligence: exports
- Rust WASM API → Simulation synthesis: exports
- Fractal views → Canvas rendering: renders on
- Demo user → Fractal views: interacts with