import numpy as np
# Create a Numpy array of 32-bit unsigned integers
ints = np.array([0xFF0000FF, 0x00FF00FF, 0x0000FFFF], dtype=np.uint32)
# View cast the array to RGBA colors
rgba = ints.view(dtype=np.uint8).reshape(-1, 4)[:, ::-1]
print(rgba)