Skip to content

A comparison of error diffusion dither performance between JavaScript and WebAssembly generated from C++, D, Rust and Zig

License

Notifications You must be signed in to change notification settings

allen-garvey/wasm-error-diffusion-dither-comparison

Repository files navigation

WASM Error Diffusion Dither Comparison

A comparison of error diffusion dither performance using the Stucki error diffusion dither algorithm between JavaScript and WebAssembly generated from C++, D, Rust and Zig.

JavaScript Dependencies

  • node >= 16.14
  • npm

WebAssembly Dependencies

  • make
  • POSIX compatible operating system

C++

D

Rust

Zig

Getting Started

  • npm install
  • npm start

Compiling WebAssembly (only required if changing WebAssembly source files)

  • Make sure you have all WebAssembly dependencies installed
  • make

Docker

Alternatively you can run using Docker (x86-64 architecture only)

  • docker build -t wasm-dither .
  • docker run -p 3000:3000 wasm-dither

License

WASM Error Diffusion Dither Comparison is released under the MIT License. See license.txt for more details.

About

A comparison of error diffusion dither performance between JavaScript and WebAssembly generated from C++, D, Rust and Zig

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published