lerp static method
The colour a fraction t of the way from from to to, every channel
interpolated in linear light, for a caller blending between two.
Implementation
static LinearColor lerp(LinearColor from, LinearColor to, double t) =>
LinearColor(
from.r + (to.r - from.r) * t,
from.g + (to.g - from.g) * t,
from.b + (to.b - from.b) * t,
from.a + (to.a - from.a) * t,
);