2023-02-03 10:22:39 +00:00
|
|
|
## 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.
|
2023-03-04 01:49:09 -08:00
|
|
|
- S toggles the frame statistics layer
|
2023-03-16 00:30:51 -07:00
|
|
|
- C resets the min/max frame time tracked by statistics
|
2023-05-18 18:50:57 +01:00
|
|
|
- D toggles displaying the required number of each kind of dynamically allocated element (default: off)
|
2023-03-16 01:02:49 -07:00
|
|
|
- V toggles VSync on/off (default: on)
|
2023-02-03 10:22:39 +00:00
|
|
|
- Escape exits the program.
|