lerp method
lerp
return a value between begin
and end
Implementation
@override
Color lerp(double t) => Color.fromARGB(
clampInt(
lerpInt(begin.alpha, end.alpha, t).toInt(),
_colorMin,
_colorMax,
),
clampInt(
lerpInt(begin.red, end.red, t).toInt(),
_colorMin,
_colorMax,
),
clampInt(
lerpInt(begin.green, end.green, t).toInt(),
_colorMin,
_colorMax,
),
clampInt(
lerpInt(begin.blue, end.blue, t).toInt(),
_colorMin,
_colorMax,
),
);