# tiny_skia_display
<img alt="tiny_skia_display" src="https://codeberg.org/flovanco/assets/raw/branch/master/raqote-display.png">
Implementation of embedded-graphics https://github.com/embedded-graphics/embedded-graphics DrawTarget based on tiny-skia https://github.com/RazrFalcon/tiny-skia.
<a href="https://codeberg.org/morphUI/tiny_skia_display">
<img alt="Get it on Codeberg" src="https://pages.codeberg.org/pstorch/get-it-on-blue-on-white.png" height="60">
</a>
[](https://liberapay.com/FloVanLP/donate)
[](./LICENSE)
## Add to your project
To include tiny_skia_display in your project, add this dependency
line to your `Cargo.toml` file:
```text
tiny_skia_display = { git = "https://codeberg.org/morphUI/tiny_skia_display" }
```
### Run example
```shell
cargo run --example minimal
```
### Run web example
#### Install web toolchain
* Rust standard toolchain `rustup`, `rustc`, `cargo` ([install](https://www.rust-lang.org/tools/install))
* Rust web assembly toolchain `wasm-pack` ([install](https://rustwasm.github.io/wasm-pack/installer/))
* JavaScript package manager npm ([install](https://www.npmjs.com/get-npm))
#### Rub example
* Navigate to `examples/minimal` director
* Run `npm install`
* Run `npm run serve`
## Build and run documentation
You can build and view the latest documentation by executing the following command:
```shell
cargo doc --no-deps --open
```