- Psykick2D
Text
Use for containing text information
new Text(
options
)
Parameters
options | object | ||
options.x | number | X position | 0 |
options.y | number | Y position | 0 |
options.text | string | Text | '' |
options.style.font | string | Font style | 'bold 24px Arial' |
options.style.fill | string | Fill style | 'black' |
options.style.align | string | Alignment | 'left' |
options.style.stroke | Fill style for the stroke | ||
options.style.strokeThickness | number | Thickness of the stroke | 0 |
options.style.wordWrap | boolean | If true, words will wrap around | false |
options.style.wordWrapWidth | number | The width at which the text will wrap | 100 |
Properties
NAME | string | 'Text' | |
_text | string | private | '' |
x | number | 0 | |
y | number | 0 | |
text |