mirror of
https://github.com/RGBCube/serenity
synced 2025-08-02 23:07:35 +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.
132 B
16x16px
132 B
16x16px
