fill method

Fills subpaths by using the current fill style.

 

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