wasm-bindgen/examples/paint
Alex Crichton f24828a16b Add a top-level web_sys::window function
Returns `Option<Window>` and can be used as a convenience to get a handle to the
global `window` object.
2018-09-17 17:36:53 -07:00
..
src Add a top-level web_sys::window function 2018-09-17 17:36:53 -07: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.