WebAssembly image dithering example
Radu
void at null.pt
Fri Aug 3 09:41:53 UTC 2018
On Thursday, 2 August 2018 at 22:04:50 UTC, Allen Garvey wrote:
> Hi all. Using the WebAssembly tutorial from a few week ago, I
> created a small example to dither an image. You can see the
> source at https://github.com/allen-garvey/wasm-dither-example
> and the demo at
> https://allen-garvey.github.io/wasm-dither-example/. I had
> heard about WebAssembly before this, but this was my first
> experience actually using it, so it was an interesting project
> for me, and overall a positive experience.
>
> [...]
Cool stuff!
You might wanna change some of the code to be more idiomatic, for
example `DitherRCoefficient` can be turned into and enum manifest
constant.
As side note, compiler explorer added support for webassembly
assembly :) check this out https://godbolt.org/g/PskqaL
More information about the digitalmars-d-ldc
mailing list