Lore archive · Warcraft Wiki, 2023 dump
API StatusBar GetStatusBarColor
Last wiki revision 2017-09-10
Gets the color of a StatusBar object. color = StatusBar:GetStatusBarColor
- nil
- color: - Table containing r, g, b, a (red, green, blue, alpha)
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
r, g, b, a values are fractions of 255 and will be in the range of [0, 1]. For example, r = 100/255.
Source
https://warcraft.wiki.gg/wiki/API_StatusBar_GetStatusBarColor · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.