diff --git a/README.md b/README.md index c7e3747..8000923 100644 --- a/README.md +++ b/README.md @@ -1 +1,27 @@ -# Invaders +# Rust + WebGL Rectangle + +Drawing a colored rectangle with Rust, WebAssembly and WebGL. The extensively +commented main code is located in `src/draw.rs`. + +## Usage + +Initial setup: + +```sh +wasm-pack build +cd www +npm install +``` + +Compile `.wasm` file: + +```sh +wasm-pack build +``` + +Run development server: + +```sh +cd www +npm run start +```