8000 mini.nvim/lua/mini/colors.lua at main · connectednode/mini.nvim · GitHub
[go: up one dir, main page]

Skip to content

Latest commit

 

History

History
2415 lines (2113 loc) · 96 KB

colors.lua

File metadata and controls

2415 lines (2113 loc) · 96 KB
-- Simulate monochromacy by setting zero 'crhoma'
if cvd_type == 'mono' then
local lch = MiniColors.convert(x, 'oklch')
lch.c, lch.h = 0, nil
---@diagnostic disable:return-type-mismatch
return MiniColors.convert(lch, 'hex')
end
-- Simulate regular CVD by multiplying with appropriate matrix
severity = H.clip(H.round(10 * severity), 0, 10)
0