Text#

class Drawing.Text#

Text. Created using Drawing.add_text().

position: Tuple#

Position of the text.

Attribute:

Can be read or written

rotation: Tuple#

Rotation of the text as a quaternion.

Attribute:

Can be read or written

face_camera: boolean#

Whether the text turns to face the camera, in place of its Drawing.Text.rotation.

Attribute:

Can be read or written

reference_frame: SpaceCenter.ReferenceFrame#

Reference frame for the positions of the object.

Attribute:

Can be read or written

visible: boolean#

Whether the object is visible.

Attribute:

Can be read or written

remove()#

Remove the object.

content: string#

The text string

Attribute:

Can be read or written

font: string#

Name of the font

Attribute:

Can be read or written

staticmethod available_fonts(): List#

A list of all available fonts.

size: number#

Font size.

Attribute:

Can be read or written

character_size: number#

Character size.

Attribute:

Can be read or written

style: UI.FontStyle#

Font style.

Attribute:

Can be read or written

color: StdLib.ColorRGB#

Set the color

Attribute:

Can be read or written

material: string#

Material used to render the object. Creates the material from a shader with the given name.

Attribute:

Can be read or written

alignment: UI.TextAlignment#

Alignment.

Attribute:

Can be read or written

line_spacing: number#

Line spacing.

Attribute:

Can be read or written

anchor: UI.TextAnchor#

Anchor.

Attribute:

Can be read or written