java.lang.Object
me.andreasmelone.glowingeyes.client.util.color.ColorUtil

public class ColorUtil extends Object
  • Constructor Details

    • ColorUtil

      public ColorUtil()
  • Method Details

    • invertColor

      public static Color invertColor(Color color)
    • ARGBtoRGBA

      public static int ARGBtoRGBA(int argb)
    • RGBAtoARGB

      public static int RGBAtoARGB(int rgb)
    • getRedFromRGB

      public static int getRedFromRGB(int rgb)
    • getGreenFromRGB

      public static int getGreenFromRGB(int rgb)
    • getBlueFromRGB

      public static int getBlueFromRGB(int rgb)
    • HSVtoBGR

      public static int HSVtoBGR(double hue, double saturation, double value)
    • HSBtoBGR

      public static int HSBtoBGR(float hue, float saturation, float brightness)
    • BGRtoHSB

      public static int BGRtoHSB(int bgr)
    • BGRtoHSB

      public static int BGRtoHSB(int blue, int green, int red)
    • RGBtoHSB

      public static int RGBtoHSB(int rgb)
    • getHueFromRGB

      public static int getHueFromRGB(int rgb)
    • getBrightnessFromRGB

      public static int getBrightnessFromRGB(int rgb)
    • getSaturationFromRGB

      public static int getSaturationFromRGB(int rgb)
    • getRGBFromBrightness

      public static int getRGBFromBrightness(int rgb, int brightness)
    • getRGBFromSaturation

      public static int getRGBFromSaturation(int rgb, int saturation)
    • getRGBFromSaturationAndBrightness

      public static int getRGBFromSaturationAndBrightness(int rgb, int saturation, int brightness)
    • getRGBFromBrightness

      public static int getRGBFromBrightness(int rgb, float brightness)
    • getRGBFromSaturation

      public static int getRGBFromSaturation(int rgb, float saturation)
    • getRGBFromSaturationAndBrightness

      public static int getRGBFromSaturationAndBrightness(int rgb, float saturation, float brightness)
    • getHSBFromRGB

      public static float[] getHSBFromRGB(int rgb)
    • intToHex

      public static String intToHex(int color)
    • hexToInt

      public static int hexToInt(String hex)