isDark function

bool isDark(
  1. Color color
)

是否暗颜色

Implementation

bool isDark(Color color) {
  return color.computeLuminance() < 0.179;
}