mirror of
https://github.com/italicsjenga/vello.git
synced 2025-01-10 12:41: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.
23 lines
564 B
Markdown
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.
|