I’m trying to vary the color of a ParametricPlot along the curve according to a function of t, for experimental purposes and to make cool designs. I’ve tried:
These attempts fail because the color is constant for x (I want the color to vary with an arbitrary function of t, which should make the color different at different x values), and because the color only goes through the spectrum once. Ideally, the solution would utilize one of the ColorData schemes (i.e. “Pastels”) such that the curve would oscillate in that color scheme multiple times along the curve according to a function f[t].
Thanks in advance, sorry if it’s a newbie question.
You need to use the 3rd argument in this case (go to the help of ColorFunction there it will be shown which parameters and in what order are passed on to ColorFunction. ParametricPlot in this case gets x,y,t values…