Make the game-of-life example a bit more interesting

This moves the entire image buffer to WASM that now also applies some fading.
This commit is contained in:
dcodeIO
2018-04-19 23:16:03 +02:00
parent 18ef7c1932
commit 9cd3304e13
9 changed files with 2326 additions and 843 deletions

View File

@ -17,7 +17,7 @@ canvas { position: absolute; top: 60px; left: 20px; width: calc(100% - 40px); he
( <a href="https://github.com/AssemblyScript/assemblyscript/blob/master/examples/mandelbrot/assembly/index.ts">source</a> )
</h1>
<canvas></canvas>
<script>
<script>"use strict";
// Set up a 2D rendering context
var cnv = document.getElementsByTagName("canvas")[0];