image = np.zeros((height, width, 4), dtype=np.uint8)
b, g, r, a = image.T
r.fill(255)
image[..., :3] = 255, 255, 0
image32bit = image.reshape(-1).view(np.uint32).reshape(height, width)
Plotting directly to movie with numpy and mencoder