tree: 570e1b7f20efbee1c1bbef563a1f62f2b28b009f [path history] [tgz]
  1. src/
  2. Cargo.toml
  3. README.md
examples/with_winit/README.md

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.
  • S toggles the frame statistics layer
  • C resets the min/max frame time tracked by statistics
  • D toggles displaying the required number of each kind of dynamically allocated element (default: off)
  • V toggles VSync on/off (default: on)
  • Escape exits the program.