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,
  );
}