Skip to content

Commit

Permalink
Nothing important
Browse files Browse the repository at this point in the history
  • Loading branch information
Azilroka committed Jan 20, 2025
1 parent 9f3e7f2 commit af26553
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions AddOnSkins/Core/Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ function AS:GetColor(name)
end

function AS:RGBToHex(r, g, b, header)
r = r <= 1 and r >= 0 and r or 1
g = g <= 1 and g >= 0 and g or 1
b = b <= 1 and b >= 0 and b or 1
r, g, b = r <= 1 and r >= 0 and r or 1, g <= 1 and g >= 0 and g or 1, b <= 1 and b >= 0 and b or 1
return format('%s%02x%02x%02x', header or '|cff', r * 255, g * 255, b * 255)
end

Expand Down

0 comments on commit af26553

Please sign in to comment.