mirror of
https://github.com/italicsjenga/vello.git
synced 2025-01-10 04:31:30 +11:00
89fb1b89da
Added a module for frame time statistics and UI layer that displays the average, minimum, and maximum frame time alongside FPS. The UI can be toggled by pressing the `S` key.
564 B
564 B
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.