blob: 178b906d60b7aed116e6a83488e6ff8b6794dfa6 [file] [view]
# vello_example_scenes
A collection of scenes used for Vello Sparse Strips examples.
This crate provides various scene implementations including:
- Basic shapes and paths
- Text rendering
- Image handling
- Gradients and blending
- SVG rendering
- Clipping operations
- COLR emoji stress testing
## Emoji Grid Font
The Emoji Grid scene uses the bundled Noto Color Emoji COLR subset by default.
Native builds can render a different COLR font by setting `NOTO_COLR_PATH` to
the font file path before running the example. For it to work in WASM, you have to
change two lines in the source file, see there for more information.
You can do something as follows to get it up and running (on Linux/MacOS):
```bash
curl -L -o /tmp/Noto-COLRv1.ttf https://github.com/googlefonts/noto-emoji/raw/main/fonts/Noto-COLRv1.ttf
NOTO_COLR_PATH=/tmp/Noto-COLRv1.ttf cargo run -p vello_hybrid_winit --release
# OR
NOTO_COLR_PATH=/tmp/Noto-COLRv1.ttf cargo run -p vello_cpu_winit --release
```