Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

DrawComponent<T>

Draws data on a canvas.

Inputs

  • canvas (Mutex<Buffer>): a mutable canvas to draw on
  • elem (T): the element to draw on the canvas

Outputs

None.

Configuration

Appears in configuration files with type = "draw".

Additional fields:

  • draw (Type): the types of elements to draw. Only blob, apriltag, line, and their bracketed variants are recognized.
  • space (luma | rgb | hsv | yuyv | ycc): the color space to filter in.
  • Channel names for the color components. These vary by color space. For example, with yuyv the channels are y, u, and v; with rgb they are r, g, and b.