Tutorial from https://rustwasm.github.io/docs/book/game-of-life/implementing.html Extended to change memory from Javascript on Mouse click.
 
 
 
Go to file
Benoît 49ec2a21a5 Randomize cell initialization 2020-06-10 20:50:04 +02:00
src Randomize cell initialization 2020-06-10 20:50:04 +02:00
tests Initial Commit 2020-06-10 10:56:43 +02:00
www Change page title 2020-06-10 20:06:41 +02:00
.cargo-ok Initial Commit 2020-06-10 10:56:43 +02:00
.gitignore Initial Commit 2020-06-10 10:56:43 +02:00
.travis.yml Initial Commit 2020-06-10 10:56:43 +02:00
Cargo.toml Randomize cell initialization 2020-06-10 20:50:04 +02:00
LICENSE_APACHE Initial Commit 2020-06-10 10:56:43 +02:00
LICENSE_MIT Initial Commit 2020-06-10 10:56:43 +02:00
README.md Updating link 2020-06-10 20:16:36 +02:00

README.md

About

Tweak of the great Wasm tutorial here : tutorials

Note for myself

Crée l'arborescence www

$ wasm-pack build
$ npm init wasm-app www
$ cd www/
$ npm install

Puis :

$ vim www/package.json
--
  "dependencies": {
    "wasm-game-of-life": "file:../pkg", // Add this line!
--

Puis :

$ vim www/index.js
--
import * as wasm from "wasm-game-of-life";
(…)
--