# FillRule

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

[API reference](/docs/api/index.md) › [HTML SVG](/docs/extensions/html-svg/reference/index.md) › [Values](/docs/extensions/html-svg/reference/values/index.md) › FillRule

| enum | `UIAwesome\Html\Svg\Values\FillRule` |
| --- | --- |
| Backed by | `string` |
| Source | [`src/Values/FillRule.php`](https://github.com/ui-awesome/html-svg/blob/main/src/Values/FillRule.php#L22) |

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

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

See also: [`Circle::fillRule()`](/docs/extensions/html-svg/reference/circle/index.md#method-fillRule), [`Ellipse::fillRule()`](/docs/extensions/html-svg/reference/ellipse/index.md#method-fillRule), [`G::fillRule()`](/docs/extensions/html-svg/reference/g/index.md#method-fillRule), [`Line::fillRule()`](/docs/extensions/html-svg/reference/line/index.md#method-fillRule), [`Path::fillRule()`](/docs/extensions/html-svg/reference/path/index.md#method-fillRule), [`Polygon::fillRule()`](/docs/extensions/html-svg/reference/polygon/index.md#method-fillRule), [`Polyline::fillRule()`](/docs/extensions/html-svg/reference/polyline/index.md#method-fillRule), [`Rect::fillRule()`](/docs/extensions/html-svg/reference/rect/index.md#method-fillRule), [`Text::fillRule()`](/docs/extensions/html-svg/reference/text/index.md#method-fillRule).

## Cases

| Case | Value | Description |
| --- | --- | --- |
| <span id="case-EVENODD"></span>`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. |
| <span id="case-NONZERO"></span>`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. |