I'm looking for a way to draw a self intersecting polygon with holes, I'm using the HTML Canvas element.
So given 5 points, I want to draw the red one below.
This question is essentially the same thing.
Note: I don't want to do this using line intersections and adding more points, the actual paths I will be using will be curved.