Package codechicken.lib.colour
Class ColourRGBA
java.lang.Object
codechicken.lib.colour.Colour
codechicken.lib.colour.ColourRGBA
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionColourRGBA(double r, double g, double b, double a) ColourRGBA(float[] data) ColourRGBA(int colour) ColourRGBA(int r, int g, int b, int a) ColourRGBA(ColourRGBA colour) -
Method Summary
Methods inherited from class codechicken.lib.colour.Colour
a, add, aF, aF, aF, argb, b, bF, bF, bF, equals, equals, flipABGR, g, getARGB, getRGBA, gF, gF, gF, hashCode, interpolate, invert, multiply, multiplyC, pack, packARGB, packARGB, packARGB, packARGB, packRGBA, packRGBA, packRGBA, packRGBA, r, rF, rF, rF, rgb, rgba, scale, set, set, set, set, set, set, sub, toString, unpack
-
Constructor Details
-
ColourRGBA
public ColourRGBA(int colour) -
ColourRGBA
public ColourRGBA(double r, double g, double b, double a) -
ColourRGBA
public ColourRGBA(int r, int g, int b, int a) -
ColourRGBA
public ColourRGBA(float[] data) -
ColourRGBA
-
-
Method Details
-
pack
public int pack() -
packArray
public float[] packArray() -
copy
-
set
-
pack
-
multiply
public static int multiply(int c1, int c2) -
multiplyC
public static int multiplyC(int c, float f)
-