Class ColorConversionUtils
java.lang.Object
software.bluelib.utils.conversion.ColorConversionUtils
Utility class for color conversion operations.
Purpose: This class provides methods to convert and validate various color formats.
When: Used when color values need to be parsed or validated.
Where: Invoked in contexts where color manipulation is required.
Additional Info: Supports RGB, ARGB, and hexadecimal color formats.
parseColorToHexString(String)- Converts various color formats into 0xFFFFFF.
- Since:
- 1.6.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intparseColorToHexString(String pInput) Converts various color formats into 0xFFFFFF.
-
Constructor Details
-
ColorConversionUtils
public ColorConversionUtils()
-
-
Method Details
-
parseColorToHexString
Converts various color formats into 0xFFFFFF.Purpose: This method parses a color string and converts it to a hexadecimal format.
When: Called when a color string needs to be converted to a hexadecimal value.
Where: Used in contexts where color values are processed.
Additional Info: Supports RGB, ARGB, and hexadecimal formats.- Parameters:
pInput- the color string to parse- Returns:
- the color in 0xFFFFFF format, or -1 if invalid
- Since:
- 1.6.0
-