slint/examples/graphicstest
Simon Hausmann bcc6c6a60a Move Color and RenderingPrimitive into abi::datastructures
This paves the way to replace RenderingInfo.
2020-05-22 16:07:06 +02:00
..
src Move Color and RenderingPrimitive into abi::datastructures 2020-05-22 16:07:06 +02:00
.gitignore Ignore some generated files 2020-05-11 08:59:39 +02:00
Cargo.toml Simplify geometry handing 2020-05-11 19:23:03 +02:00
index.html Fix wasm build 2020-05-07 15:07:29 +02:00
logo.png Start with image rendering 2020-05-05 18:20:21 +02:00
README Add README that explains how to try the wasm build 2020-05-07 15:07:29 +02:00

To try the WASM build, use these steps:

cargo build --target wasm32-unknown-unknown --bin graphicstest
cd examples/graphicstest
mkdir -p generated
wasm-bindgen ../../target/wasm32-unknown-unknown/debug/graphicstest.wasm --out-dir generated --no-modules
cp index.html generated/

Then serve for example with

cd generated/
python -m SimpleHTTPServer

and go to

http://localhost:8000/index.html