| Crates.io | miter |
| lib.rs | miter |
| version | 0.5.0 |
| created_at | 2020-02-22 21:59:04.592797+00 |
| updated_at | 2020-02-23 18:03:15.786017+00 |
| description | Ratio calculator on your terminal. |
| homepage | https://github.com/rafamrs/miter |
| repository | https://github.com/rafamrs/mite |
| max_upload_size | |
| id | 211577 |
| size | 9,355 |
$ cargo install miter
To get the ratio and the percentage between two dimensions. The first one is the the width and the second argument is the height.
$ miter 1600 900
The result for this will be the following:
The ratio is: 16:9
The percentage is: 56.25%
To get the opposite dimension of a ratio use the following method. When you want to get a height, send the value after the flag --width and then the width and height. To achieve the opposite, send the height value after the --height flag.
$ miter 1600 900 -w 16
$ miter 1600 900 --width 16
$ miter 1600 900 --width="16"
The result for this will be something like this:
The proportional height is: 9
$ miter 1600 900 -h 9
$ miter 1600 900 --height 9
$ miter 1600 900 --height="9"
The result for this will be something like this:
The proportional width is: 16