Files
Basalt/docs/objects/Object/setForeground.md
Robert Jelic ab72f244ed Updated some formatting
Updated formatting for object
2022-10-20 21:05:29 +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" />
```