Playing around with the web-cam using WASM.
This version uses web-sys to access DOM elements directly in the Rust code.
- ./build.sh
- ./start.sh
- Navigate to http://localhost:8080
You can modify the wasm-cam configuration from the browser console with the following methods:
webCam.setSquareSize(size: number)Changes the size of each pixel square, can be 4, 8, 16 or 32webCam.setTransformation(transform: string)Changes the transform, can bepixelate,greyscaleorindentitywhich leaves the picture unmodified.