# `Giggly.Geom.Polygon`
[🔗](https://github.com/giggleton/giggly/blob/v0.2.0/lib/giggly/geom/polygon.ex#L1)

Polygons: each group a shape through its rows in order, at each row's `x` and `y`, filled with
its first row's `fill` at its `alpha` and bordered in its `color`, `linewidth` and `linetype`; a
group's `subgroup`s are rings of one shape, holes among them, filled by `rule:`.

Its options are `rule:` (`:evenodd` or `:winding`), `lineend:`, `linejoin:` and `linemitre:`.
Build one with `Giggly.Geom.new(Giggly.Geom.Polygon, options)`, so each option left out takes its
default. A geom drawing by delegation sets its rows up through it and draws them through it
(`Giggly.Geom`).

# `t`

```elixir
@opaque t()
```

# `new`

```elixir
@spec new(keyword()) :: t()
```

Polygons from options validated against `options/0`.

# `options`

```elixir
@spec options() :: keyword()
```

The options polygons are built from, as a `NimbleOptions` schema: their fill rule, line ends, corners and mitre limit.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
