Class Color8Bit
java.lang.Object
org.wpilib.util.Color8Bit
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
red
Red component (0-255). -
green
Green component (0-255). -
blue
Blue component (0-255).
-
-
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
-
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
-
equals
-
hashCode
-
toString
-
toHexString
Return this color represented as a hex string.- Returns:
- a string of the format
#RRGGBB
-