This is a better forum for the continuation of this thread: https://forum.unity.com/threads/xonix-polygons-filling.1287575/ which was started by @Geckoo but wasn't really relevant to Unity Scripting and was mod-locked. @Geckoo asked: > how (and when) could I determine the point from which the filling process starts ? Read my post here, specifically part 2: https://forum.unity.com/threads/xonix-polygons-filling.1287575/#post-8161703 And for this: > How may I be sure that I have a closed polygon ? You ALWAYS have a filled polygon: the screen boundaries catch everything. The floodfill routine (see Bunny's notes above) can give you the list of cells that constitute an "enclosed area."
UPDATE: I finally wrapped up my treatment of this CGA classic... come check it out!! Appstore: https://apps.apple.com/ch/app/kurt-arcade/id1591748111 Google Play: https://play.google.com/store/apps/details?id=com.kurt.arcadetv Itch.io: https://kurtdekker.itch.io/kurt-arcade