Skip to content

Latest commit

 

History

History
52 lines (28 loc) · 2.05 KB

examples.md

File metadata and controls

52 lines (28 loc) · 2.05 KB
description sidebarDepth
A collection of AssemblyScript examples that one can play around with right in the browser.
0

Examples

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.

Preview image

Animates and renders an interference pattern to a canvas while keeping the image buffer in WebAssembly.

Preview image

Continuously updates a cellular automaton and visualizes its state on a canvas according to user input.

Preview image

Advanced examples

Shows how to exchange and work with arrays using the loader.

Examples repository

Various more advanced examples are available as part of the examples repository, including a sophisticated example of using the loader, creating (node) libraries, utilizing the browser SDK and hooking into the compiler using transforms.

Additional resources

If you are interested in learning more about specific concepts, also make sure to give Wasm By Example a read.