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 xyz = xyzInViewingConditions(viewingConditions, array: _viewedArray);
  final argb = ColorUtils.argbFromXyz(xyz[0], xyz[1], xyz[2]);
  return argb;
}