/ rust

Marching Squares in Rust+WebAssembly

After previous forays into creating fancy backgrounds using JavaScript, I've been playing with an implementation of one of my favourite computer graphics algorithms in Rust. It seems that my second, more efficient implementation is a lot faster than the old JavaScript code (I didn't benchmark them side-by-side but it is a few orders of magnitude).

LIVE DEMO

I haven't yet cleaned up the code but would be willing to share what I've got upon request.

Marching Squares in Rust+WebAssembly
Share this