local p = p.gradient = function(frame)local ranking = frame.args.rankinglocal colorValue = ""local rankingPercent = ranking/43local redNum = rankingPercent * 255local greenNum = 102 + rankingPercent * 153local redOut = string.format("%x", redNum)local greenOut = string.format("%x", greenNum)if string.len (redOut)
1 then greenOut = "0" .. greenOutendcolorValue = redOut .. greenOut .. "00"local msg = ""if redNum >= 50.0 then msg = "style='background:#" .. colorValue .. "; color:black'|" .. rankingendif redNum < 50.0 then msg = "style='background:#" .. colorValue .. "; color:white'|" .. rankingendreturn msgendreturn p