A collection of AssemblyScript examples and snippets.
# Starter examples
Small entertaining programs showcasing low-level WebAssembly capabilities. These compile to less than one or just a few kilobytes so their text format is easy to grasp.
Renders the Mandelbrot set to a canvas using 2048 discrete color values computed on the JS side.easy
Animates and renders an interference pattern to a canvas while keeping the image buffer in WebAssembly.easy
# Game of Life
Continuously updates a cellular automaton and visualizes its state on a canvas according to user input.intermediate
# Advanced examples
Shows how to exchange and work with arrays using the loader.intermediate
# Examples repository
Various more advanced examples are available as part of the examples repository (opens new window), including a sophisticated example of using the loader (opens new window), creating (node) libraries (opens new window), utilizing the browser SDK (opens new window) and hooking into the compiler using transforms (opens new window).
# Additional resources
If you are interested in learning more about specific concepts, also make sure to give Wasm By Example (opens new window) a read.