viewed method

int viewed(
  1. ViewingConditions viewingConditions
)

ARGB representation of a color, given the color was viewed in viewingConditions

Implementation

int viewed(ViewingConditions viewingConditions) {
  final List<double> xyz =
      xyzInViewingConditions(viewingConditions, array: _viewedArray);
  final int argb = ColorUtils.argbFromXyz(xyz[0], xyz[1], xyz[2]);
  return argb;
}