WASM (Webassembly) support
Thanks to the syscall/js package included into the Go base, Pigo has been ported to WASM 🎉. This gives a huge gain in terms of real time performance.
How to run it?
First download and build the serve package for making a simple webserver. Then simply type the
$ serve command to build the
wasm file and start the webserver. That's all. It will open a new page under
In case the
lib.wasm is not generated automatically you can build yourself running the following command:
$ GOOS=js GOARCH=wasm go build -o lib.wasm wasm.go
s - Show/hide pupils
c - Toggle circle/rectangle detection mark