From d319d2fcd90ac113e5b8830b59840fca3e696025 Mon Sep 17 00:00:00 2001 From: Igor Timofeev Date: Tue, 28 Mar 2017 01:14:47 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A0=D0=B0=D1=83=D0=BD=D0=B4=20=D0=B4=D0=BB?= =?UTF-8?q?=D1=8F=20=D0=B3=D0=B5=D0=B5=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/colorlib.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/colorlib.lua b/lib/colorlib.lua index 3462e1d8..6b74dfeb 100755 --- a/lib/colorlib.lua +++ b/lib/colorlib.lua @@ -107,7 +107,7 @@ local palette = {} for r = 0, 5 do --Красный спектр for g = 0, 7 do --Зелёный спектр for b = 0, 4 do --Синий спектр - table.insert(palette, colorlib.RGBtoHEX(r * 0x33, g * 0x24, math.round(b / 4 * 0xFF))) --СИНИЙ, ПРЕКРАТИ + table.insert(palette, colorlib.RGBtoHEX(r * 0x33, g * 0x24, math.floor(b / 4 * 0xFF + 0.5))) --СИНИЙ, ПРЕКРАТИ end end end