mirror of
https://github.com/italicsjenga/vello.git
synced 2025-01-09 20:31:29 +11:00
22 lines
525 B
Markdown
22 lines
525 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.
|
||
|
- Escape exits the program.
|