Winding Number
Draw a closed curve. Each region is colored by its winding number around that point.
Draw
Clear
Example
Figure-8
Winding number at cursor:
—
Click to start, click again to add points. Double-click to close curve.
w = 0 (outside)
w = +1
w = -1
w = +2
w = -2