noticeablyDifferentInternal static method

bool noticeablyDifferentInternal(
  1. BigColor c1,
  2. dynamic c2,
  3. double percentageObservers,
  4. dynamic targetSize,
)

Implementation

static bool noticeablyDifferentInternal(
    final BigColor c1, c2, double percentageObservers, targetSize) {
  final jnd = noticeableDifferenceThresholds(percentageObservers, targetSize);
  return (((c1.l - c2.l).abs() >= jnd[0]) ||
      ((c1.a - c2.a).abs() >= jnd[1]) ||
      ((c1.b - c2.b).abs() >= jnd[2]));
}