lerp static method

OkLAB lerp(
  1. OkLAB start,
  2. OkLAB end,
  3. double fraction
)

Implementation

static OkLAB lerp(OkLAB start, OkLAB end, double fraction) {
  return OkLAB(
    lerpDouble(start.l, end.l, fraction) ?? 0,
    lerpDouble(start.a, end.a, fraction) ?? 0,
    lerpDouble(start.b, end.b, fraction) ?? 0,
  );
}