private static int PACKW4(short r, short g, short b, short a) { return (W2B(r) | (W2B(g) << 8) | (W2B(b) << 16) | (W2B(a) << 24)); }