mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-31 05:39:55 +00:00
Lasso selection works by allowing the user to draw an arbitrary shape much like the pen tool and ensuring the shape is closed by connecting the start/end points when the user is done drawing. Everything inside the shape becomes the selection. Selection is determined via an outer flood fill. We begin a flood fill from a point that is guaranteed to be outside of the drawn shape, and anything the fill doesn't touch is determined to be the selection region.