1 unstable release

0.1.0 Jan 31, 2020

#26 in #rectangle

24 downloads per month
Used in tarmac

MIT license

261 lines


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.


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