Apply Any Coloring Function to an Image

This takes each color channel and applies a triangle wave function to its value.