First Color class in java seams to be bugged

The Color class (with the 12 bits of precision), which is located at the edu.wpi.first.wpilibj.util seams to return RGB 0 for all types of Color that are created statically.

Using the Color from a Color8Bit constructor seams to work fine though.

Does anyone else gets the same result here?
I am using the wpilib simulator, can’t test on the robot, tough I doubt it would make any difference.

Can you post the exact code you’re using and show us the console output or show us how you are debugging the values?

I haven’t used the Color class much, but I might still be able to help if you post code.

Thank you for pointing this out. We have a fix in the works that should make it into the next release. You can find more information about this on the known issues page of the documentation.


This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.