Introduction - If you have any usage issues, please Google them yourself
A polygon consisting of a plurality of segments consisting of a line segment from bottom to bottom by horizontal scanning. Each scan line produces a series of intersections with each polygon edge. The intersection points are classified according to the X coordinate, and the sorted intersection points are taken out in pairs as the two endpoint, and the horizontal lines are drawn with the filled colors. Polygon is after the scan is complete coloring.