#graphics #canvas #embedded-graphics #github #wasm #draw-target #tiny-skia

tiny_skia_display

Implementation of embedded-graphics https://github.com/jamwaffles/embedded-graphics DrawTarget based on tiny-skia https://github.com/RazrFalcon/tiny-skia

1 unstable release

0.1.0 Aug 6, 2021

#787 in Graphics APIs

MIT license

20KB
128 lines

tiny_skia_display

tiny_skia_display

Implementation of embedded-graphics https://github.com/embedded-graphics/embedded-graphics DrawTarget based on tiny-skia https://github.com/RazrFalcon/tiny-skia.

Get it on Codeberg

Donate

MIT licensed

Add to your project

To include tiny_skia_display in your project, add this dependency line to your Cargo.toml file:

tiny_skia_display = { git = "https://codeberg.org/morphUI/tiny_skia_display" }

Run example

cargo run --example minimal

Run web example

Install web toolchain

  • Rust standard toolchain rustup, rustc, cargo (install)
  • Rust web assembly toolchain wasm-pack (install)
  • JavaScript package manager npm (install)

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:

cargo doc --no-deps --open

Dependencies

~1MB
~23K SLoC