vello/examples/with_winit
Arman Uguray 1ac4a4f1a8 [frame_stats] Draw a live plot of frame time samples
Also abandoned the FrameScope idea and revised the `Stats::add_sample`
to accept a struct to accept a variety of future measurements.
2023-03-21 11:33:50 -07:00
..
src [frame_stats] Draw a live plot of frame time samples 2023-03-21 11:33:50 -07:00
Cargo.toml Update for Bevy 0.10 and other dependencies (#290) 2023-03-16 15:44:10 +00:00
README.md [frame_stats] Add frame statistics UI to with_winit example 2023-03-21 11:33:22 -07: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.
  • S toggles the frame statistics layer
  • Escape exits the program.