Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
fill

fill method

Fills subpaths by using the current fill style.

HTML Canvas 2D Context, Section 9Internet Explorer 9

 

Syntax


object.fill(fillRule);

Parameters

fillRule [in, optional]

Type: String

Set 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

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
ICanvasRenderingContext2D::lineTo
msFillRule

 

 

Community Additions

ADD
Show:
© 2015 Microsoft