addTextOverlay
R2026bDescription
adds an empty text overlay to the viewport of the specified RoadRunner Viewer object txt = addTextOverlay(rrViewer)rrViewer, and returns a
TextOverlay object, txt. Use the
TextOverlay object to specify the text content, text style, text
size, and text position in the viewport. For example, txt =
addTextOverlay(rrViewer); adds a text overlay, txt, to
the viewport of the specified RoadRunner Viewer rrViewer. The code txt.Text = "Hello
World";, txt.Size = [0.25 0.25];, and txt.Style
= "background: rgba(0,0,0,0.7); color: white; font-size: 16px;"; specify
the text content, size, and style of the text overlay txt,
respectively.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2026b
See Also
roadrunnerViewer | | TextOverlay | ImageOverlay | addImageOverlaydrawnow
Topics
- Get Started with RoadRunner Viewer (RoadRunner Scenario)