My current knowledge is that if I want to filter an image to, let's say, a bluish tint on a ppm image, I would loop through the RGB values and increase the blue values.
However, apps like Instagram have a slider that can be used to adjust the extent of the image filter. I would assume that the program doesn't keep looping through all the RGB values to modify them. So how is it achieved so quickly?