mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
SCRIPT: wpiformat
This commit is contained in:
committed by
Peter Johnson
parent
ae6bdc9d25
commit
2109161534
@@ -1037,7 +1037,8 @@ void AssertIndexColor(std::span<AddressableLED::LEDData> data, int index,
|
||||
}
|
||||
|
||||
Color LerpColors(Color a, Color b, double t) {
|
||||
return Color{wpi::util::Lerp(a.red, b.red, t), wpi::util::Lerp(a.green, b.green, t),
|
||||
return Color{wpi::util::Lerp(a.red, b.red, t),
|
||||
wpi::util::Lerp(a.green, b.green, t),
|
||||
wpi::util::Lerp(a.blue, b.blue, t)};
|
||||
}
|
||||
} // namespace wpi
|
||||
|
||||
Reference in New Issue
Block a user