function(progress, r1, g1, b1, a1, r2, g2, b2, a2)
local colors_for_rage = {}
-- when you reach "X" rage set the red/green/blue colors for rage.
colors_for_rage[0] = {red = 1, green = 0, blue = 0} -- red: need 15 rage for devestate
colors_for_rage[59] = {red = 1, green = 1, blue = 0} -- yellow: everythign is good
colors_for_rage[119] = {red = 0, green = 0, blue = 1} -- full rage
local red, green, blue = colors_for_rage[0].red, colors_for_rage[0].green, colors_for_rage[0].blue
local player_rage = UnitPower("player", 1)
for threshold, rage_colors in pairs(colors_for_rage) do
if player_rage > threshold then
--print(string.format("%i %i", player_rage, threshold))
red, green, blue = rage_colors.red, rage_colors.green, rage_colors.blue
end
end
return red, green, blue, 1
end