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
- Host: GitHub
- URL: https://github.com/romnn/aspect-ratio
- Owner: romnn
- License: mit
- Created: 2025-03-15T16:23:09.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-04-23T00:11:22.000Z (9 months ago)
- Last Synced: 2025-06-14T09:06:23.618Z (7 months ago)
- Topics: aspect-ratio, graphics, images, rust, scaling
- Language: Rust
- Homepage: https://docs.rs/aspect-ratio
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## aspect-ratio
[
](https://github.com/romnn/aspect-ratio/actions/workflows/build.yaml)
[
](https://github.com/romnn/aspect-ratio/actions/workflows/test.yaml)
[](https://deps.rs/repo/github/romnn/aspect-ratio)
[
](https://docs.rs/aspect-ratio)
[
](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