Frame:SetBackgroundColor()

From Riftui Wiki

Jump to: navigation, search

Sets the background color for the frame.

Contents

Color Values

Each value passed for red, green, and blue are considered a percentage. When working with a color picker, you can obtain this value by simply dividing each value by 255.

Signature

frame:SetBackgroundColor(red, green, blue [, alpha])

Parameters

Return Value

None

Example

local context = UI.CreateContext("SampleContext")
local frame = UI.CreateFrame("Frame", "SampleFrame", context)
-- Set the background color to Red --
frame:SetBackgroundColor(1, 0, 0, 1)
Personal tools
Namespaces
Variants
Actions
Menu
Wiki
Toolbox