Class ColorUtil
java.lang.Object
me.andreasmelone.glowingeyes.client.util.color.ColorUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intARGBtoRGBA(int argb) static intBGRtoHSB(int bgr) static intBGRtoHSB(int blue, int green, int red) static intgetBlueFromRGB(int rgb) static intgetBrightnessFromRGB(int rgb) static intgetGreenFromRGB(int rgb) static float[]getHSBFromRGB(int rgb) static intgetHueFromRGB(int rgb) static intgetRedFromRGB(int rgb) static intgetRGBFromBrightness(int rgb, float brightness) static intgetRGBFromBrightness(int rgb, int brightness) static intgetRGBFromSaturation(int rgb, float saturation) static intgetRGBFromSaturation(int rgb, int saturation) static intgetRGBFromSaturationAndBrightness(int rgb, float saturation, float brightness) static intgetRGBFromSaturationAndBrightness(int rgb, int saturation, int brightness) static intgetSaturationFromRGB(int rgb) static intstatic intHSBtoBGR(float hue, float saturation, float brightness) static intHSVtoBGR(double hue, double saturation, double value) static StringintToHex(int color) static ColorinvertColor(Color color) static intRGBAtoARGB(int rgb) static intRGBtoHSB(int rgb)
-
Constructor Details
-
ColorUtil
public ColorUtil()
-
-
Method Details
-
invertColor
-
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
-
hexToInt
-