Square split is a simple algorithm that will split a large square into smaller squares. It is useful for texture atlases if you don't care about the size of the texture. which is useful for generating CSS sprites and WebGL textures. GitHub: Benjythebee/squaresplit
. Inspired by Mapbox/potpack