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

https://github.com/colinmcneil/aspect-ratio-tools

Extensive NPM toolkit to help with calculations behind image & display aspect ratios.
https://github.com/colinmcneil/aspect-ratio-tools

aspect-ratio node-module nodejs

Last synced: about 2 months ago
JSON representation

Extensive NPM toolkit to help with calculations behind image & display aspect ratios.

Awesome Lists containing this project

README

          

**Aspect Ratio Tools**
=====
Currently the most extensive set of tools for working with aspect ratio. Supports TypeScript!
### [Documentation](http://aspect-ratio-tools.readthedocs.io/en/latest/?) ###

## Install ##
`npm install aspect-ratio-tools --save`

## Quickstart ##
```javascript
const {AR} = require('aspect-ratio-tools');
var myAR = new AR(1920,1080);
console.log(myAR.toString())
```
Outputs
> Aspect Ratio Object:
> Width: 1920
> Height: 1080
> Aspect Ratio: 1.7777777777777777 (16:9)