packos 0.1.0

Simple rectangle packing library
Documentation
  • Coverage
  • 100%
    7 out of 7 items documented1 out of 1 items with examples
  • Size
  • Source code size: 29.83 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.79 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • LPGhatguy

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.