pub fn merge_spans(rects: &[PixelRect]) -> Vec<PixelRect>
Joins rectangles that sit side by side on the same rows (particles in one cell row), so a frame needs fewer copies.