Class FastColor.ARGB32
java.lang.Object
net.tearpelato.deco_lib.api.fluid.renderer.core.FastColor.ARGB32
- Enclosing class:
FastColor
-
Method Summary
Modifier and TypeMethodDescriptionstatic intalpha(int color) static intaverage(int c1, int c2) static intblue(int color) static intfromFloats(float a, float r, float g, float b) static intfromRGB(int r, int g, int b) static intfromRGBA(int a, int r, int g, int b) static intgreen(int color) static intlerp(float delta, int c1, int c2) static intmultiply(int c1, int c2) static intred(int color) static intwithAlpha(int alpha, int rgb) static intwithFullAlpha(int color)
-
Method Details
-
alpha
public static int alpha(int color) -
red
public static int red(int color) -
green
public static int green(int color) -
blue
public static int blue(int color) -
fromRGBA
public static int fromRGBA(int a, int r, int g, int b) -
fromRGB
public static int fromRGB(int r, int g, int b) -
multiply
public static int multiply(int c1, int c2) -
lerp
public static int lerp(float delta, int c1, int c2) -
withFullAlpha
public static int withFullAlpha(int color) -
withAlpha
public static int withAlpha(int alpha, int rgb) -
fromFloats
public static int fromFloats(float a, float r, float g, float b) -
average
public static int average(int c1, int c2)
-