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

Segments: a straight line from each row's `x` and `y` to its `xend` and `yend`, in its `color`,
`alpha`, `linewidth` and `linetype`, in row order; where straight lines bend in the panel, each is
drawn as a two-point path.

Its options are `arrow:`, `lineend:` and `linejoin:`. Build one with
`Giggly.Geom.new(Giggly.Geom.Segment, 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()
```

Segments from options validated against `options/0`.

# `options`

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

The options segments are built from, as a `NimbleOptions` schema: their arrowheads, line ends and corners.

---

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