Dynamic Colors
Family of curves - dynamic colors
How is the color of the function changing? Right-click the function, select "Object Properties" - "Advanced" to see what's happening. You can change the numbers, the function, the points and create your own.