wasm-flood-fill
Implementation of a flood fill algorithm in Rust for WebAssembly.
This is an experimentation with WebAssembly to speed-up CPU intensive operations (flood-fill on large canvas).
Usage
;;;;;; ; context.putImageDatanew ImageDatadata, width, height, 0, 0;
Benchmarks between an equivalent function implemented in JavaScript shows an improvement in speed of 3 to 5 times for the wasm version. One flood fill takes ~50-60ms in wasm and ~230ms in JS for a 800x660 canvas.