Fill space between cubic bezier curves and straight lines

@kenny
Any chance to provide an editable live code example of how you build those contours? (jsfiddle, codepen, codesandbox etc.)

Also, have a look at this forum post: Ringsegment function leads to strange behaviour - #8 by prisoner849