Files
Basalt/docs/docs1_6/objects/Object/setForeground.md
Robert Jelic d4c72514ef Docs 1.6
Accidentally uploaded outdated 1.6 docs
2023-05-01 16:28:46 +02:00

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" />
```