BB.Camera.Annotation.Circle (bb_camera v0.3.0)

Copy Markdown View Source

A circle: Foxglove's CircleAnnotation.

Sizes are in pixels of the layer's frame. See BB.Camera.Annotation.Types for points and colours. Foxglove's per-annotation timestamp and metadata are left out.

Summary

Functions

Build a circle annotation.

Like new/1, but raises.

Types

t()

@type t() :: %BB.Camera.Annotation.Circle{
  diameter: number(),
  fill_color: BB.Camera.Annotation.Types.color() | nil,
  outline_color: BB.Camera.Annotation.Types.color() | nil,
  position: BB.Camera.Annotation.Types.point(),
  thickness: number()
}

Functions

new(opts)

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

Build a circle annotation.

new!(opts)

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

Like new/1, but raises.