pub fn lerp_rgb(
a: (u8, u8, u8),
b: (u8, u8, u8),
num: u16,
den: u16,
) -> (u8, u8, u8)Expand description
Interpolate using signed division toward zero. Clamp the numerator to the
original denominator before replacing a zero divisor with one. Therefore
a zero denominator always returns a, matching the caller contract.