texture_text#

k3d.factory.texture_text(text: str, position: Tuple[float, float, float] = (0, 0, 0), color: int = 255, font_weight: int = 400, font_face: str = 'Courier New', font_size: int = 68, size: float = 1.0, name: str | None = None, group: str | None = None, custom_data: Dict[str, Any] | None = None, compression_level: int = 0, **kwargs: Any) TextureText[source]#

See also

Examples#

import k3d

plt_texture_text = k3d.texture_text('Texture',
                                    position=[0, 0, 0],
                                    font_face='Calibri',
                                    font_weight=600,
                                    color=0xa2ffc8)

plot = k3d.plot()
plot += plt_texture_text
plot.display()