add opacity to color packing
simplify color unpacking
flatten color packing