From 44859624a36e2df5ba72b890d5bf6321f4a6f342 Mon Sep 17 00:00:00 2001 From: thetek Date: Sun, 18 Jun 2023 18:33:06 +0200 Subject: [PATCH] chore: update readme --- README.md | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) 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 +```