[wpiutil] Move Color and Color8Bit from wpilib to wpiutil (#8437)

Removes one of the org.wpilib.util package conflicts for modularization.

Only a few minor tweaks were required to remove the wpimath dependency.
This commit is contained in:
Peter Johnson
2025-11-30 11:11:48 -08:00
committed by GitHub
parent e902a98601
commit 42992953ed
32 changed files with 468 additions and 385 deletions

View File

@@ -79,7 +79,7 @@ class AddressableLED {
*
* @param color The color of the LED
*/
void SetLED(const Color& color) {
void SetLED(const wpi::util::Color& color) {
this->r = color.red * 255;
this->g = color.green * 255;
this->b = color.blue * 255;
@@ -90,7 +90,7 @@ class AddressableLED {
*
* @param color The color of the LED
*/
void SetLED(const Color8Bit& color) {
void SetLED(const wpi::util::Color8Bit& color) {
this->r = color.red;
this->g = color.green;
this->b = color.blue;