This is so awesome. When you want to "flood fill" a polygonal area, search the forum for "Delaunay". It's a triangulation method for polygons. Maybe that helps? For convex polygons, "ear clipping" is the algorithm you want. GPT is likely to provide code for you.