The master branch was reverted to 1.7 because it was very unstable (bugs and stuff that wasn't mentioned on the documentation page yet) - features will come back with 2.0 - fixed debug window - fixed flexbox not sending drag events to it's children - small docs updates for 1.7 - removed the examples because the are outdated
28 lines
688 B
Markdown
28 lines
688 B
Markdown
## blit
|
|
|
|
### Description
|
|
|
|
Sets or modifies text, foreground and background color.
|
|
|
|
### Parameters
|
|
|
|
1. `string` text - The text to be placed at the specified position
|
|
1. `string` foreground - A string representing the foreground color
|
|
1. `string` background - A string representing the background color
|
|
2. `number` x - The x-coordinate of the text position.
|
|
3. `number` y - The y-coordinate of the text position.
|
|
|
|
### Returns
|
|
|
|
1. `object` The object in use
|
|
|
|
### Usage
|
|
|
|
* Creates a new image object, adds a frame, and sets the text in the active frame.
|
|
|
|
```lua
|
|
local mainFrame = basalt.createFrame()
|
|
local aImage = mainFrame:addImage():addFrame():blit("Hello", "fffff", "00000", 1, 1)
|
|
|
|
```
|