2020-06-10 20:50:04 +02:00
2020-06-10 10:56:43 +02:00
2020-06-10 10:56:43 +02:00
2020-06-10 10:56:43 +02:00
2020-06-10 10:56:43 +02:00
2020-06-10 20:50:04 +02:00
2020-06-10 10:56:43 +02:00
2020-06-10 10:56:43 +02:00
2020-06-10 20:16:36 +02:00

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";
(…)
--
Description
Tutorial from https://rustwasm.github.io/docs/book/game-of-life/implementing.html Extended to change memory from Javascript on Mouse click.
Readme 180 KiB
Languages
JavaScript 48.5%
Rust 45.2%
HTML 6.3%