use visioncortex::ColorHsv;
pub(crate) fn is_black_hsv(color: &ColorHsv) -> bool {
const BLACK_LIMIT: f64 = 0.125;
if color.s != 0.0 && color.v != 0.0 {
color.s*color.v <= BLACK_LIMIT
} else { (if color.s > 0.0 {color.s} else {color.v}) <= BLACK_LIMIT
}
}