![]() |
The API is no longer being updated here until further notice. |
Gets the color of a StatusBar object.
color = StatusBar:GetStatusBarColor()
Arguments
- nil
Returns
- color
- - Table containing r, g, b, a (red, green, blue, alpha)
Example
local color = playerHealthBar:GetStatusBarColor()
print("red: %d, green: %d, blue: %d, alpha: %d", color.r, color.g, color.b, color.a)
- Result
- prints the r, g, b, a values to chat
Notes
r, g, b, a values are fractions of 255 and will be in the range of [0, 1]. For example, r = 100/255.
