Just a simple little wrapper around image
, imageproc
, rusttype
intended for WebAssembly usage from Node.js or any headless JS runtime.
- Fill rectangle with solid color.
- Draw images as blended sprites, and optionally resize them.
- Draw text with custom fonts, sizes, & colors.
- Export PNG image.
- Do a barrel roll.
See benchmark script and auto-generated TS annotations.
makeImgSimpleDraw done in 105 ms
makeImgSatori done in 7708 ms
Build:
wasm-pack build --target nodejs
Test:
wasm-pack test --node
MIT