TextGraphic¶

TextGraphic¶

Constructor¶

TextGraphic(text[, position, size, ...])

Create a text Graphic

Properties¶

TextGraphic.children

Return the children of the WorldObject.

TextGraphic.face_color

Returns the face color of this graphic.

TextGraphic.name

str name reference for this item

TextGraphic.outline_color

Returns the outline color of this graphic.

TextGraphic.outline_size

Returns the outline size of this graphic.

TextGraphic.position

position of the graphic, [x, y, z]

TextGraphic.position_x

x-axis position of the graphic

TextGraphic.position_y

y-axis position of the graphic

TextGraphic.position_z

z-axis position of the graphic

TextGraphic.rotation

TextGraphic.text

Returns the text of this graphic.

TextGraphic.text_size

Returns the text size of this graphic.

TextGraphic.visible

Access or change the visibility.

TextGraphic.world_object

Associated pygfx WorldObject.

Methods¶

TextGraphic.rotate(alpha[, axis])

Rotate the Graphic with respect to the world.