Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Fills subpaths by using the current fill style.
![]() ![]() |
Syntax
object.fill(fillRule);
Parameters
fillRule [in, optional]
Type: StringSet to evenodd to use the even-odd fill rule. If missing, uses non-zero winding rule.
Return value
This method does not return a value.
Standards information
- HTML Canvas 2D Context, Section 9
Remarks
Starting with Internet Explorer 11 this method uses the non-zero winding number rule or the even-odd rule, based on the setting of the optional fillRule parameter. Earlier versions offer only the default non-zero winding number rule.
See also
ICanvasRenderingContext2D::closePath
ICanvasRenderingContext2D::beginPath
.png)
.png)