mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-22 15:46:56 +00:00
unitframes: unify pastel color calculation
This commit is contained in:
+1
-3
@@ -2631,9 +2631,7 @@ function pfUI.uf.GetColor(self, preset)
|
||||
|
||||
-- pastel
|
||||
if C.unitframes.pastel == "1" then
|
||||
r = ( r + .75 ) * .5
|
||||
g = ( g + .75 ) * .5
|
||||
b = ( b + .75 ) * .5
|
||||
r, g, b = (r + .5) * .5, (g + .5) * .5, (b + .5) * .5
|
||||
end
|
||||
|
||||
return rgbhex(r,g,b)
|
||||
|
||||
Reference in New Issue
Block a user