vello/examples/with_winit/README.md
Arman Uguray 89fb1b89da [frame_stats] Add frame statistics UI to with_winit example
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.
2023-03-21 11:33:22 -07:00

23 lines
564 B
Markdown

## Usage
Running the viewer without any arguments will render a built-in set of public-domain SVG images:
```bash
$ cargo run -p with_winit --release
```
Optionally, you can pass in paths to SVG files that you want to render:
```bash
$ 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.