After creating the text object, you can set a number of built-in properties to have various affects. The following built-in text-properties can be used.
text.text = "hello world" | sets the text to hello world |
text.scaleX = 2 | sets the width to 200% |
text.scaleY = 2 | sets the height to 200% |
text.skewX = 45 | sets the skewX by 45 degrees |
text.skewY = 45 | sets the skewY by 45 degrees |
text.x = 100 | sets the x position to 100 |
text.y = 100 | sets the y position to 100 |
text.z = 10 | sets the z position to 10 |
text.visible = False | sets the visibility to False |
text.angle = 45 | sets the angle to 45 degrees |
text.fontSize = 16 | sets the font size to 16 |
text.fontFamily = "roboto" | sets the font type to roboto |
text.color = "#fff" | sets the hex value color (white) |
text.persistent = True | sets the persistence to True |
text.halign = "center" | Sets alignment of the text horizontally. Use "right", "left", or "center" alignment |
text.valign = "top" | Sets alignment of the text vertically. Use "top", "middle", or "bottom" alignment |