Constructor
new Text(font, lineHeight, color) → {Text}
Parameters:
Name | Type | Description |
---|---|---|
font |
string | |
lineHeight |
number | |
color |
string |
Returns:
- Type
- Text
Methods
resize(x, y, w, h)
Resizes the text field
Parameters:
Name | Type | Description |
---|---|---|
x |
number | |
y |
number | |
w |
number | |
h |
number |
setText()
Sets new text