1 unstable release

0.1.0 Jan 31, 2020

#24 in #rectangle


Used in tarmac

MIT license

14KB
261 lines

Packos


Packos is a small library for packing rectangles. It was built for Tarmac, a tool that manages assets for Roblox projects, including packing images into spritesheets.

It's designed to:

  1. Err on the side of simplicity.
  2. Fit hard constraints:
    • Fixed padding
    • Minimum and maximum bucket sizes
    • Power-of-two dimensions

Packos leaves applying the rectangle packing solution to the consuming application.

License

Packos is available under the MIT license. See LICENSE.txt for details.

Dependencies

~87KB