# Difference between revisions of "Highlight curve via slider"

From JSXGraph Wiki

A WASSERMANN (talk | contribs) |
A WASSERMANN (talk | contribs) |
||

Line 6: | Line 6: | ||

{ | { | ||

strokeColor:function(){ return (s.Value()<0.5)?'red':'blue';}, | strokeColor:function(){ return (s.Value()<0.5)?'red':'blue';}, | ||

− | strokeWidth:function(){ return (s.Value() | + | strokeWidth:function(){ return (s.Value()<0.5)?3:1;}, |

}); | }); | ||

var f = board.createElement('functiongraph', [function(x){ return x+1;}], | var f = board.createElement('functiongraph', [function(x){ return x+1;}], |