An open API service indexing awesome lists of open source software.

https://github.com/romnn/aspect-ratio

Scales a 2D rect to fit or cover one or more bounds, optionally preserving aspect-ratio
https://github.com/romnn/aspect-ratio

aspect-ratio graphics images rust scaling

Last synced: 7 months ago
JSON representation

Scales a 2D rect to fit or cover one or more bounds, optionally preserving aspect-ratio

Awesome Lists containing this project

README

          

## aspect-ratio

[build status](https://github.com/romnn/aspect-ratio/actions/workflows/build.yaml)
[test status](https://github.com/romnn/aspect-ratio/actions/workflows/test.yaml)
[![dependency status](https://deps.rs/repo/github/romnn/aspect-ratio/status.svg)](https://deps.rs/repo/github/romnn/aspect-ratio)
[docs.rs](https://docs.rs/aspect-ratio)
[crates.io](https://crates.io/crates/aspect-ratio)

Scale a 2D rect to fit or cover one or more bounds, optionally preserving aspect-ratio.

```bash
cargo add aspect-ratio
```

- TODO: add examples