ENTRY | DOWNLOAD | MANUAL | ONGOING | |
SpriteTextSpriteText is a special Sprite that draws 3D, polygonal text into perspective space. Unlike TagText and the text() and font() functions it actually manifests the text as polygon meshes. Such text can be shaded and transformed like any other geometry. Just as TagText, SpriteText compiles the text to display lists. SpriteText can also be conveniently subclassed to create more specialized text sprites.
SpriteText(parent, name, size, typeface)
<spritetext>.setText(text)
<spritetext>.setColor(r, g, b, a)
Relevant examples: spritetext.py , tagtext.py , text.py , ALL In Contextclass Atlantis(World): def onSetup(self): self.name = "Typo" st = SpriteText(self, 'count', 21) st.setText('You can read.') st.setColor(1.0, 0.5, 0.5, 1.0) st.moveBy(1, 0.5, -0.3) |
|
Initiated by Stephan Hechenberger Thanks to CADRE's 103 |