Package edu.wpi.first.wpilibj.util
Class Color8Bit
java.lang.Object
edu.wpi.first.wpilibj.util.Color8Bit
public class Color8Bit extends Object
Represents colors with 8 bits of precision.
-
Field Details
-
Constructor Details
-
Color8Bit
public Color8Bit()Constructs a default color (black). -
Color8Bit
Constructs a Color8Bit.- Parameters:
red
- Red value (0-255)green
- Green value (0-255)blue
- Blue value (0-255)
-
Color8Bit
Constructs a Color8Bit from a Color.- Parameters:
color
- The color
-
Color8Bit
Constructs a Color8Bit from a hex string.- Parameters:
hexString
- a string of the format#RRGGBB
- Throws:
IllegalArgumentException
- if the hex string is invalid.
-
-
Method Details