ViewingConditions.defaultWithBackgroundLstar constructor

ViewingConditions.defaultWithBackgroundLstar(
  1. double lstar
)

Create sRGB-like viewing conditions with a custom background lstar.

Default viewing conditions have a lstar of 50, midgray.

Implementation

factory defaultWithBackgroundLstar(double lstar) => .make(
  ColorUtils.whitePointD65,
  200.0 / math.pi * ColorUtils.yFromLstar(50.0) / 100.0,
  lstar,
  2.0,
  false,
);