From 6fe1cf38ad61e8e79af391d5c2ebf398cdfaa337 Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 20 Jul 2025 20:42:44 +0200 Subject: [PATCH] unitframes: unify pastel color calculation --- api/unitframes.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/api/unitframes.lua b/api/unitframes.lua index e80dbe82..d8d5826b 100644 --- a/api/unitframes.lua +++ b/api/unitframes.lua @@ -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)