631 B
631 B
Object
setBackground
Changes the object background color, if you set the value to false the background wont be visible. For example you could see trough a frame.
Parameters
number|colorBackground colorcharbackground symbol you want to draw (optional)number|colorBackground symbol color (optional)
Returns
objectThe object in use
Usage
- Creates a frame, and sets its background color to
colors.gray, also sets a background symbol with color black.
local mainFrame = basalt.createFrame():setBackground(colors.gray, "#", colors.black)
<button bg="gray" />