I’m stuck. I’ve looked at many examples but can’t find one that increments a variable / parameter within a graph by clicking on an Action Button.
In the following activity, I’d like the value of n to cycle through integers 1–10 when the user clicks the “Change n” button repeatedly. Any ideas / suggestions?
Polar Graph
This will cycle through 1-10 repeatedly. Put it in the graph component.
number("n"): numericValue("\\operatorname{mod}(${actionButton.pressCount},10)+1")
BRILLIANT! :). I was on the verge of getting this . . . but you’ve saved me considerable time. THANK YOU!!!
You can also just use “\\mod” instead of “\\operatorname{mod}”