Class ColorConversionUtils

java.lang.Object
software.bluelib.utils.conversion.ColorConversionUtils

public class ColorConversionUtils extends Object
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.

Key Methods:
Since:
1.6.0
  • Constructor Details

    • ColorConversionUtils

      public ColorConversionUtils()
  • Method Details

    • parseColorToHexString

      public static int parseColorToHexString(String pInput)
      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