26 lines
346 B
Markdown
26 lines
346 B
Markdown
# Object
|
|
|
|
## setForeground
|
|
|
|
Changes the object text color
|
|
|
|
### Parameters
|
|
|
|
1. `number|color` Foreground color
|
|
|
|
### Returns
|
|
|
|
1. `object` The object in use
|
|
|
|
### Usage
|
|
|
|
* Creates a frame, and sets its foreground color to `colors.green`
|
|
|
|
```lua
|
|
local mainFrame = basalt.createFrame():setForeground(colors.green)
|
|
```
|
|
|
|
```xml
|
|
<button fg="green" />
|
|
```
|