Class ColorHelper

java.lang.Object
com.pixelmonmod.api.helpers.ColorHelper

public class ColorHelper extends Object
  • Constructor Details

    • ColorHelper

      public ColorHelper()
  • Method Details

    • getParsedColor

      public static Optional<Color> getParsedColor(String color)
    • getParsedColorName

      public static Optional<String> getParsedColorName(String color)
    • rgbToDecimal

      public static int rgbToDecimal(int red, int green, int blue)
      Converts a rgb color to a decimal color via bit-shifting the value
      Parameters:
      red - - The red value of the color (0-255)
      green - - The green value of the color (0-255)
      blue - - The blue value of the color (0-255)
      Returns:
      - The decimal value of the color