Skip to content
PHP Ecosystem
Explore

FillRule

API reference › HTML SVG › Values › FillRule

enumUIAwesome\Html\Svg\Values\FillRule
Backed bystring
Sourcesrc/Values/FillRule.php

Represents literal string values for the SVG fill-rule attribute.

Provides the keyword values used by the fill-rule attribute.

See also: Circle::fillRule(), Ellipse::fillRule(), G::fillRule(), Line::fillRule(), Path::fillRule(), Polygon::fillRule(), Polyline::fillRule(), Rect::fillRule(), Text::fillRule().

CaseValueDescription
EVENODD'evenodd'evenodd - This value determines the “insideness” of a point on the canvas by drawing a ray from that point to infinity in any direction and counting the number of path segments from the given shape that the ray crosses.
NONZERO'nonzero'nonzero - This value determines the “insideness” of a point on the canvas by drawing a ray from that point to infinity in any direction and counting the number of path segments from the given shape that the ray crosses.