The non-zero surround principle in the canvas and the canvas zero surround Principle
Non-zero surround principle:
If you need to determine whether a region needs to be filled with color, select a random point from the region.
Pull a straight line from this point and be sure to pull it out of the graph. At this time, the point is the center of the circle.
The line that passes through the pulled straight line. If it is clockwise, it is recorded as + 1. If it is counterclockwise,
It is recorded as-1. The result of the final view of the sum. If it is 0, it will not be filled. If it is non-zero, it will be filled.
My opinion: the above judgment is too difficult. My opinion:
Non-zero surround principle: determines whether to fill the canvas when filling.
Draw a line out of the area to determine the fill, and pull it out of the image. This line is the Auxiliary Line.
Determine whether the drawn line is from the left side of the guides to the right side of the guides. At this time, this method is recorded as + 1.
If it is from the right side of the guides to the left side of the guides, remember-1.
Finally, the number of all records is summed. If the result of the sum is 0, this area is not filled; otherwise, it must be filled.