Package de.ellpeck.rockbottom.api.util
Class Colors
java.lang.Object
de.ellpeck.rockbottom.api.util.Colors
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidbind(float r, float g, float b, float a) static voidbind(int color) static floatgetA(int color) static intgetAInt(int color) static floatgetB(int color) static intgetBInt(int color) static floatgetG(int color) static intgetGInt(int color) static floatgetR(int color) static intgetRInt(int color) static intlerp(float r1, float g1, float b1, float a1, float r2, float g2, float b2, float a2, float factor) static intlerp(int c1, int c2, float factor) static intmultiply(float r1, float g1, float b1, float a1, float r2, float g2, float b2, float a2) static intmultiply(int color, float factor) static intmultiply(int color, float r, float g, float b, float a) static intmultiply(int c1, int c2) static intmultiplyA(int color, float multiplier) static intrainbow(float pos) static intstatic intrgb(float red, float green, float blue) static intrgb(float red, float green, float blue, float alpha) static intrgb(int r, int g, int b) static intrgb(int r, int g, int b, int a) static intsetA(int color, float a) static StringtoFormattingCode(float r, float g, float b) static StringtoFormattingCode(int color)
-
Field Details
-
NO_COLOR
public static final int NO_COLOR- See Also:
-
RESET_COLOR
public static final int RESET_COLOR- See Also:
-
TRANSPARENT
public static final int TRANSPARENT- See Also:
-
WHITE
public static final int WHITE- See Also:
-
BLACK
public static final int BLACK- See Also:
-
DARK_GRAY
public static final int DARK_GRAY- See Also:
-
GRAY
public static final int GRAY- See Also:
-
LIGHT_GRAY
public static final int LIGHT_GRAY- See Also:
-
YELLOW
public static final int YELLOW- See Also:
-
ORANGE
public static final int ORANGE- See Also:
-
RED
public static final int RED- See Also:
-
PINK
public static final int PINK- See Also:
-
MAGENTA
public static final int MAGENTA- See Also:
-
GREEN
public static final int GREEN- See Also:
-
PURPLE
public static final int PURPLE- See Also:
-
CYAN
public static final int CYAN- See Also:
-
BROWN
public static final int BROWN- See Also:
-
LIME
public static final int LIME- See Also:
-
BLUE
public static final int BLUE- See Also:
-
LIGHT_BLUE
public static final int LIGHT_BLUE- See Also:
-
-
Constructor Details
-
Colors
public Colors()
-
-
Method Details
-
rgb
public static int rgb(int r, int g, int b) -
rgb
public static int rgb(int r, int g, int b, int a) -
rgb
public static int rgb(float red, float green, float blue) -
rgb
public static int rgb(float red, float green, float blue, float alpha) -
getR
public static float getR(int color) -
getG
public static float getG(int color) -
getB
public static float getB(int color) -
getA
public static float getA(int color) -
getRInt
public static int getRInt(int color) -
getGInt
public static int getGInt(int color) -
getBInt
public static int getBInt(int color) -
getAInt
public static int getAInt(int color) -
setA
public static int setA(int color, float a) -
multiplyA
public static int multiplyA(int color, float multiplier) -
random
-
toFormattingCode
-
toFormattingCode
-
bind
public static void bind(float r, float g, float b, float a) -
bind
public static void bind(int color) -
lerp
public static int lerp(int c1, int c2, float factor) -
lerp
public static int lerp(float r1, float g1, float b1, float a1, float r2, float g2, float b2, float a2, float factor) -
multiply
public static int multiply(int color, float factor) -
multiply
public static int multiply(int c1, int c2) -
multiply
public static int multiply(float r1, float g1, float b1, float a1, float r2, float g2, float b2, float a2) -
multiply
public static int multiply(int color, float r, float g, float b, float a) -
rainbow
public static int rainbow(float pos)
-