Pixel color filter

I would like to play around with pixel values.
What is the best way to apply a color filter over a pixel array?


int color = pixels[x + y * width] | 0xFFFFFF00;

This is how I think it would work. But I guess I’m wrong…