vello/examples/with_winit
2023-03-06 11:41:12 -05:00
..
src post rebase fixups 2023-03-06 11:41:12 -05:00
Cargo.toml Make the with_winit example run on android (#273) 2023-03-05 11:33:30 +00:00
README.md Split the examples into frontends with a shared scene repository (#262) 2023-02-03 10:22:39 +00:00

Usage

Running the viewer without any arguments will render a built-in set of public-domain SVG images:

$ cargo run -p with_winit --release

Optionally, you can pass in paths to SVG files that you want to render:

$ cargo run -p with_winit --release -- [SVG FILES]

Controls

  • Mouse drag-and-drop will translate the image.
  • Mouse scroll wheel will zoom.
  • Arrow keys switch between SVG images in the current set.
  • Space resets the position and zoom of the image.
  • Escape exits the program.