Value | Meaning |
---|---|
rows | A basic, fast, but wasteful algorithm. (~6–10% waste) It inserts the tallest unpacked rectangle and moves right until it reaches the right edge, then goes down by the height of the tallest rectangle in that row. |
pixelScan | A relatively simple but slow algorithm, that tends to waste very little space. (~2–6% waste) It inserts the tallest unpacked rectangle into the topmost, leftmost space large enough to accommodate it. |
A method to pack rectangles together.