Dynamically control color gradient for function curve?

Devon DeJohn shared this question 1 week ago
Answered

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?


b4e55f8175

Comments (4)

photo
1

this?

you can change the accurate in h(x)

Files: foro.ggb
photo
1

I had considered doing this, but was looking for more of a gradient. Looks good enough, though. Thanks!

photo
1

in GG one object<--->one color

so you need an object for each color as Patrick did. select several level of same color

how many colors you want? same color different tones?

Files: foro.ggb
photo
photo
1

Hi,


see in properties/Advanced

...

© 2017 International GeoGebra Institute