Use this method to fill the current path of the canvas with the color, gradient, or pattern specified by the FillStyle, FillColor, FillGradient, and FillPattern properties.
If the current subpath is not closed, then this method will treat it as closed. However, it won't actually close the subpath.