Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def add_text(
self, text, pos=8, size=1.75, color="k", alpha=1, font="Montserrat"
):
"""
Adds a 2D text to the scene. Default params are to crate a large black
text at the top of the rendering window.
:param text: str with text to write
:param kwargs: keyword arguments accepted by vedo.shapes.Text2D
"""
txt = self.add_actor(
Text2D(text, pos=pos, s=size, c=color, alpha=alpha, font=font)
)
return txt