Dynamically control color gradient for function curve?
I made a Taylor series demo for my class, and would like to dynamically change the color of the original function (in pink) based on how closely it matches the Taylor polynomial (in green).
It sort of works by fiddling with the opacity slider, but I don't like how dull the colors are, and how subtle the change is.
I was thinking of maybe using the spreadsheet to compare values of the two functions and changing the color of the original function to a different color depending on the error between the two values at a given point, so as the Taylor polynomial veers off of the original function, the color would fade back to the original color.
Is this possible, or am I stuck with opacity sliders and dull colors?