point_in_polygon Draws by checking if point is inside. This requires a "point in polygon" testing. gif-recorded usage demos DHTML version (HTML5+ES) https://arkenidar.github.io/point_in_polygon/quads_or_triangles.html Lua, Love2D version https://github.com/arkenidar/Lua_Love2D_PointInPolygon-Algorithm