isColorDark method

bool isColorDark(
  1. ColorTriplet color, {
  2. double threshold = 0.3,
})

Returns whether the given color is considered dark. The color must be given as a linear RGB color.

Implementation

bool isColorDark(ColorTriplet color, {double threshold = 0.3}) =>
    _getDarkness(color, threshold);