tree: 54df4979e8cf9d095b3225c792a5a437dc254a6a
  1. src/
  2. Cargo.toml
  3. LICENSE-APACHE
  4. LICENSE-MIT
  5. README.md
sparse_strips/vello_example_scenes/README.md

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):

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