> For the complete documentation index, see [llms.txt](https://inkgame.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://inkgame.gitbook.io/docs/functions/addtext.md).

# addText

Creates text (TextObject class) and returns it

### Arguments

x - Number, sets the X position of the sprite (top-left corner)

y - Number, sets the Y position of the sprite (top-left corner)

text - String, sets the character the sprite is filled with

### Returns

TextObject
