Dim background to same level as foreground

This commit is contained in:
Ollo 2021-01-15 19:06:49 +01:00
parent 9eabc733f4
commit 4e9d78c86a

View File

@ -17,7 +17,7 @@ function handleSingleCommand(client, topic, data)
else else
red, green, blue = string.match(data, "(%d+),(%d+),(%d+)") red, green, blue = string.match(data, "(%d+),(%d+),(%d+)")
end end
colorBg=string.char(green, red, blue) colorBg=string.char(green* briPercent / 100, red * briPercent / 100, blue * briPercent / 100)
print("Updated BG: " .. tostring(red) .. "," .. tostring(green) .. "," .. tostring(blue) ) print("Updated BG: " .. tostring(red) .. "," .. tostring(green) .. "," .. tostring(blue) )
if (displayTime~= nil) then if (displayTime~= nil) then
displayTime() displayTime()