mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-26 05:50:50 +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
|
-- pastel
|
||||||
if C.unitframes.pastel == "1" then
|
if C.unitframes.pastel == "1" then
|
||||||
r = ( r + .75 ) * .5
|
r, g, b = (r + .5) * .5, (g + .5) * .5, (b + .5) * .5
|
||||||
g = ( g + .75 ) * .5
|
|
||||||
b = ( b + .75 ) * .5
|
|
||||||
end
|
end
|
||||||
|
|
||||||
return rgbhex(r,g,b)
|
return rgbhex(r,g,b)
|
||||||
|
|||||||
Reference in New Issue
Block a user