#cosine palette
A smooth color ramp from one formula, a + b · cos(2π(c · t + d)), with a, b, c and d each a color's worth of three numbers: a is the middle, b how far each channel swings, c how many times it swings as t goes from 0 to 1, and d where it starts. Twelve numbers give a whole palette, cheap to work out in a shader.
1 shader
