Closed felixdorn closed 4 months ago
hyprpicker
cmyk
hyprpicker --no-fancy --format cmyk
-nan% -nan% -nan% 0%
The current implementation does not handle the case where K = 0, which causes a divide by zero error when computing c, m, y which are of the form [expr] / K.
c
m
y
[expr] / K
In this case, setting K = 1 is a correct way to handle this edge case.
K = 1
Reproduce:
hyprpicker
with thecmyk
formatFix:
The current implementation does not handle the case where K = 0, which causes a divide by zero error when computing
c
,m
,y
which are of the form[expr] / K
.In this case, setting
K = 1
is a correct way to handle this edge case.