# `BB.Camera.Annotation.Text`
[🔗](https://github.com/beam-bots/bb_camera/blob/main/lib/bb/camera/annotation/text.ex#L5)

A text label: Foxglove's `TextAnnotation`.

`position` is the label's bottom-left corner, and `font_size` is in pixels of
the layer's frame, so a label scales with the picture it's on. See
`BB.Camera.Annotation.Types` for points and colours. Foxglove's
per-annotation timestamp and metadata are left out.

# `t`

```elixir
@type t() :: %BB.Camera.Annotation.Text{
  background_color: BB.Camera.Annotation.Types.color() | nil,
  font_size: number(),
  position: BB.Camera.Annotation.Types.point(),
  text: String.t(),
  text_color: BB.Camera.Annotation.Types.color()
}
```

# `new`

```elixir
@spec new(keyword()) :: {:ok, t()} | {:error, term()}
```

Build a text annotation.

# `new!`

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

Like `new/1`, but raises.

---

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