Skip to content

Instantly share code, notes, and snippets.

@romanoffs
Created May 18, 2020 15:55
Show Gist options
  • Save romanoffs/6a4d227aa815c2c54320bf6c9e8f26e3 to your computer and use it in GitHub Desktop.
Save romanoffs/6a4d227aa815c2c54320bf6c9e8f26e3 to your computer and use it in GitHub Desktop.
16:9 aspect ratio calculation
const calculatorResolution = width => Math.round((width / 16) * 9);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment