mapbox

mapbox/potpack

A tiny rectangle packing JavaScript library (for sprite layouts)

JavaScript
352
25
ISC License

Potpack is a JavaScript library for efficiently packing 2D rectangles into a near-square container, primarily used for generating CSS sprites and WebGL textures. It's designed for developers working on sprite layouts or texture atlasing who need a static, space-efficient packing solution. The library is lightweight, easy to use, and optimized for modern browsers and Node.js environments.

Total donated
Undistributed
Share with your subscribers: