Skip to content

Latest commit

 

History

History
69 lines (46 loc) · 1.38 KB

README.md

File metadata and controls

69 lines (46 loc) · 1.38 KB

fitrate

Calculate the length of the sides that fit into the limited volume

Test Coverage Package version


Documentation:

Demo:


fitrate

Requirements

Python 3.6+

Installation

$ pip3 install fitrate

Example

from fitrate import contain

print(contain((200, 200), 60000))
# (244, 244)

print(contain((400, 300), 60000))
# (282, 212)

# -----------

from fitrate import scale-down

print(scale-down((200, 200), 60000))
# (200, 200)

print(scale-down((400, 300), 60000))
# (282, 212)

— 🎞️ —

fitrate is licensed under the terms of the MIT license.