2 ms·I needed a layout algorithm for a video app I'm working on, so I wrote this.by it 6y agoI needed a layout algorithm for a video app I'm working on, so I wrote this.