diff options
| author | ruki <[email protected]> | 2021-09-18 11:03:41 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-09-18 11:03:41 +0800 |
| commit | 151102e2b32a11f2a02da00c8236e285b01b19f1 (patch) | |
| tree | f282f421ffda0fdc9456510b781eafc3b66316b4 | |
| parent | 40e0caffcf5b5e1959c47393f7e0bd9b2313a0f1 (diff) | |
fix color rain
| -rw-r--r-- | xmake/core/base/colors.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
