private static byte getCmd(byte col, byte a, byte z) { if (a == 0) return 0x03; //transparent fill else if (a < 255) return 0x02; // col,a,z else if (z > 0) return 0x01; // col,z else return 0x06; // col }