From 11bf35f22e4a27b42f75fa405c5b81838b51e1a8 Mon Sep 17 00:00:00 2001 From: ollo Date: Tue, 3 Jan 2017 14:29:52 +0100 Subject: [PATCH] Stored color has now also the format: red, green, blue --- webserver.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webserver.lua b/webserver.lua index c6671db..0fdb4e3 100644 --- a/webserver.lua +++ b/webserver.lua @@ -170,7 +170,7 @@ function startWebServer() local red = tonumber(string.sub(hexColor, 1, 2), 16) local green = tonumber(string.sub(hexColor, 3, 4), 16) local blue = tonumber(string.sub(hexColor, 5, 6), 16) - file.write("color=string.char(" .. green .. "," .. red .. "," .. blue .. ")\n") + file.write("color=string.char(" .. red .. "," .. green .. "," .. blue .. ")\n") -- fill the current values color=string.char(red, green, blue) end