Hacker News new | ask | show | jobs
by harmonium1729 987 days ago
Nice! Really good to know. We'll add that to our list of device/browser combos that might cause trouble so that at minimum we can warn folks. It's an early beta so we're enthusiastically collecting any examples (system configurations and also graphs) that cause problems, so if you see anything amiss we'd love to hear about it (feedback@desmos.com). [disclaimer: I work at Desmos]
1 comments

Since you work at Desmos: is there any way to have animated variables start/stop based on the value of some other variable? Or functions that graph different formulas based on a conditional? Etc.

For example, variable X is continuously cycling between -10 and +10, but only when variable D is > 1. At my son's school, there is a kind of interactive demoscene going on using Desmos (the kids believe that the school cannot block Desmos from the Chromebooks, therefore they will always have it available).

Fun question. There are a couple options:

(1) the more straightforward (but less powerful) option is to use the dynamic bounds for a slider. Here, "a" is set to animate, but the bounds don't let it move if b=0: https://www.desmos.com/calculator/mqhhpso67r

(2) the more general feature that allows for complex scripting behavior is called "actions." Here's an example that uses that, where it's more of a genuine play/pause: https://www.desmos.com/calculator/gzqwx36lo0

It's a beta feature that needs to be enabled, but anyone can turn it on. More here: https://help.desmos.com/hc/en-us/articles/4407725009165-Acti...

Thanks! I will pass those on