wasm-bindgen/examples/paint
2018-09-13 02:10:36 +03:00
..
src Add paint example 2018-09-13 02:10:36 +03:00
.gitignore Add paint example 2018-09-13 02:10:36 +03:00
build.sh Add paint example 2018-09-13 02:10:36 +03:00
Cargo.toml Add paint example 2018-09-13 02:10:36 +03:00
index.html Add paint example 2018-09-13 02:10:36 +03:00
index.js Add paint example 2018-09-13 02:10:36 +03:00
package.json Add paint example 2018-09-13 02:10:36 +03:00
README.md Add paint example 2018-09-13 02:10:36 +03:00
webpack.config.js Add paint example 2018-09-13 02:10:36 +03:00

Paint Example

This directory is an example of using the web-sys crate for making a simple painting program with all of the logic written in Rust.

You can build and run the example with:

$ ./build.sh

(or running the commands on Windows manually)

and then opening up http://localhost:8080/ in a web browser should show a blank canvas on which you can draw.