blerp method

Color blerp(
  1. Color c00,
  2. Color c10,
  3. Color c01,
  4. Color c11,
  5. double tx,
  6. double ty,
)

Implementation

Color blerp(
    Color c00, Color c10, Color c01, Color c11, double tx, double ty) {
  Color cx0 = lerp(c00, c10, tx);
  Color cx1 = lerp(c01, c11, tx);
  return lerp(cx0, cx1, ty);
}