Embedded Graphics Web Simulator
The web simulator is based on embedded-graphics-simulator.
This is a sample project demonstrating using a no_std
rust-embedded library with Webassembly.
The Web Simulator allows you to use a browser to test embedded-graphics code and run graphics. There is no need to install SDL and its development libraries for running the project. You can see the demo here.
For Development
This library is intended to be used in Rust + Webassembly projects. Check the examples which illustrate how to use the library. Look at the examples in the Embedded Graphics Simulator project for inspiration. You can use wasm-pack to create a ready to go project and add this library as a dependency.
Usage example:
use ;
use *;
use console;
use ;
use Bmp;
// This is like the `main` function, except for JavaScript.
How it works
Embedded Graphics Web Simulator implements DrawTarget
for the HTML <canvas>
element.
Credits
This project is based on the embedded-graphics library by @jamwaffles
Built with wasm-pack