From 151102e2b32a11f2a02da00c8236e285b01b19f1 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 18 Sep 2021 11:03:41 +0800 Subject: fix color rain --- xmake/core/base/colors.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake/core/base/colors.lua b/xmake/core/base/colors.lua index 942f1f081..22cfad4e3 100644 --- a/xmake/core/base/colors.lua +++ b/xmake/core/base/colors.lua @@ -184,7 +184,7 @@ function colors.rainbow256(index, seed, freq, spread) index = seed + index / spread -- make color code - local code = (freq * index) % 240 + 18 + local code = math.floor((freq * index) % 240 + 18) -- make code return string.format("#%d", code) -- cgit v1.3.1