diff options
| author | 2025-12-03 14:04:47 +0300 | |
|---|---|---|
| committer | 2025-12-03 14:04:47 +0300 | |
| commit | 7f94d67cce04305bf374ffc4d608a0584f266bae (patch) | |
| tree | 52e90e58342951282e5063c59f0597d9f2e75dff /config/nvim/lua/theme/asset | |
| parent | Небольшие апдейты (diff) | |
| download | dotfiles-7f94d67cce04305bf374ffc4d608a0584f266bae.tar.gz dotfiles-7f94d67cce04305bf374ffc4d608a0584f266bae.tar.bz2 dotfiles-7f94d67cce04305bf374ffc4d608a0584f266bae.tar.xz dotfiles-7f94d67cce04305bf374ffc4d608a0584f266bae.zip | |
03.12.25
Diffstat (limited to '')
| -rw-r--r-- | config/nvim/lua/theme/asset/hsv-to-rgb.lua | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/config/nvim/lua/theme/asset/hsv-to-rgb.lua b/config/nvim/lua/theme/asset/hsv-to-rgb.lua deleted file mode 100644 index 5a63f98..0000000 --- a/config/nvim/lua/theme/asset/hsv-to-rgb.lua +++ /dev/null @@ -1,29 +0,0 @@ -local function HsvToRgb(h, s, v) - - s = s / 100.0 - v = v / 100.0 - h = h / 60.0 - - local i = math.floor(h) % 6 - local f = h - math.floor(h) - local p = v * (1.0 - s) - local q = v * (1.0 - f * s) - local t = v * (1.0 - (1.0 - f) * s) - - local r, g, b = 0, 0, 0 - - if i == 0 then r, g, b = v, t, p - elseif i == 1 then r, g, b = q, v, p - elseif i == 2 then r, g, b = p, v, t - elseif i == 3 then r, g, b = p, q, v - elseif i == 4 then r, g, b = t, p, v - else r, g, b = v, p, q - end - - r = math.floor(r * 255 + 0.5) - g = math.floor(g * 255 + 0.5) - b = math.floor(b * 255 + 0.5) - - return string.format("#%02x%02x%02x", r, g, b) -end -return HsvToRgb |
